mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
- properly write out the genPatrolStates in savegames.
This commit is contained in:
parent
f370c0f22f
commit
64b67291bc
1 changed files with 10 additions and 1 deletions
|
@ -403,10 +403,15 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, AISTATE*& w, AISTA
|
|||
if (w == cstate)
|
||||
{
|
||||
arc(keyname, i);
|
||||
break;
|
||||
return arc;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
if (w >= genPatrolStates && w < genPatrolStates + kPatrolStateSize)
|
||||
{
|
||||
i = int(w - genPatrolStates) + 1000;
|
||||
arc(keyname, i);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -415,6 +420,10 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, AISTATE*& w, AISTA
|
|||
{
|
||||
w = allAIStates[i];
|
||||
}
|
||||
else if (i >= 1000 && i < 1000 + kPatrolStateSize)
|
||||
{
|
||||
w = genPatrolStates + i;
|
||||
}
|
||||
else
|
||||
{
|
||||
w = nullptr;
|
||||
|
|
Loading…
Reference in a new issue