mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Fixed: Crash if spawnBot is NULL
--HG-- branch : develop
This commit is contained in:
parent
fc96bdf46d
commit
5bf17060c0
1 changed files with 3 additions and 1 deletions
|
@ -1686,7 +1686,9 @@ NLMISC_COMMAND(getDatasetId,"get datasetid of bots with name matchiong the given
|
|||
FOREACH(itBot, vector<CBot*>, bots)
|
||||
{
|
||||
CBot* bot = *itBot;
|
||||
DatasetIds += bot->getSpawnObj()->dataSetRow().toString()+"|";
|
||||
CSpawnBot* spawnBot = bot->getSpawnObj();
|
||||
if (spawnBot!=NULL)
|
||||
DatasetIds += spawnBot->dataSetRow().toString()+"|";
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue