Keep default secondary order from droid initialization if no replacement order found in savegame. Should fix ticket:3359
parent
a00bab1a65
commit
be375355ed
|
@ -4231,7 +4231,7 @@ static bool loadSaveDroid(const char *pFileName, DROID **ppsCurrentDroidLists)
|
||||||
psDroid->burnStart = ini.value("burnStart", 0).toInt();
|
psDroid->burnStart = ini.value("burnStart", 0).toInt();
|
||||||
psDroid->experience = ini.value("experience", 0).toInt();
|
psDroid->experience = ini.value("experience", 0).toInt();
|
||||||
psDroid->timeLastHit = ini.value("timeLastHit", UDWORD_MAX).toInt();
|
psDroid->timeLastHit = ini.value("timeLastHit", UDWORD_MAX).toInt();
|
||||||
psDroid->secondaryOrder = ini.value("secondaryOrder", DSS_NONE).toInt();
|
psDroid->secondaryOrder = ini.value("secondaryOrder", psDroid->secondaryOrder).toInt();
|
||||||
psDroid->secondaryOrderPending = psDroid->secondaryOrder;
|
psDroid->secondaryOrderPending = psDroid->secondaryOrder;
|
||||||
psDroid->action = (DROID_ACTION)ini.value("action", DACTION_NONE).toInt();
|
psDroid->action = (DROID_ACTION)ini.value("action", DACTION_NONE).toInt();
|
||||||
psDroid->actionPos = ini.vector2i("action/pos");
|
psDroid->actionPos = ini.vector2i("action/pos");
|
||||||
|
|
Loading…
Reference in New Issue