Skip to content

Commit

Permalink
- properly write out the genPatrolStates in savegames.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Oct 11, 2021
1 parent f370c0f commit 64b6729
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion source/games/blood/src/loadsave.cpp
Expand Up @@ -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
{
Expand All @@ -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;
Expand Down

0 comments on commit 64b6729

Please sign in to comment.