mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-13 02:39:37 +00:00
Merge with develop
This commit is contained in:
parent
3324471931
commit
3e51da6264
2 changed files with 4 additions and 2 deletions
|
@ -1686,7 +1686,9 @@ NLMISC_COMMAND(getDatasetId,"get datasetid of bots with name matchiong the given
|
||||||
FOREACH(itBot, vector<CBot*>, bots)
|
FOREACH(itBot, vector<CBot*>, bots)
|
||||||
{
|
{
|
||||||
CBot* bot = *itBot;
|
CBot* bot = *itBot;
|
||||||
DatasetIds += bot->getSpawnObj()->dataSetRow().toString()+"|";
|
CSpawnBot* spawnBot = bot->getSpawnObj();
|
||||||
|
if (spawnBot!=NULL)
|
||||||
|
DatasetIds += spawnBot->dataSetRow().toString()+"|";
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -376,7 +376,7 @@ inline
|
||||||
float CStateInstance::getNelVar(std::string const& varId)
|
float CStateInstance::getNelVar(std::string const& varId)
|
||||||
{
|
{
|
||||||
TNelVarList::iterator it = _NelVar.find(varId);
|
TNelVarList::iterator it = _NelVar.find(varId);
|
||||||
if (it != _NelVar.end()) return it->second->get()
|
if (it != _NelVar.end()) return it->second->get();
|
||||||
|
|
||||||
if (NLMISC::CVariable<float>::exists(varId))
|
if (NLMISC::CVariable<float>::exists(varId))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue