Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 011829b

Browse files
committed
Fix metagame issue where ai player with 0 brains in its pool would go into negative numbers when defending
Was caused by them being registered to attack the scene they were defending, which would put a brain in transit, because their offensive target name was never cleared
1 parent 2ff228d commit 011829b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Managers/MetaMan.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,6 +1142,7 @@ void MetaMan::AIPlayerTurn(int metaPlayer)
11421142
counterRatio = 0.5;
11431143
// Nothing to attack with
11441144
offenseRatio = 0;
1145+
pThisPlayer->SetOffensiveTargetName("");
11451146
}
11461147
// Special case: no owned bases
11471148
else if (ownedScenes.empty())

0 commit comments

Comments
 (0)