fix a couple of incorrect assertions that lead to wrong refcounts
This commit is contained in:
parent
51dae7271d
commit
2b9b21c999
2 changed files with 4 additions and 2 deletions
|
@ -1709,8 +1709,6 @@ void NetworkInitClientConnect()
|
|||
*/
|
||||
void NetworkServerStartGame()
|
||||
{
|
||||
Assert(ServerSetupState.CompOpt[0] == SlotOption::Available); // the host should be slot 0
|
||||
|
||||
// save it first..
|
||||
LocalSetupState = ServerSetupState;
|
||||
|
||||
|
|
|
@ -1760,9 +1760,13 @@ void UnitCountSeen(CUnit &unit)
|
|||
break;
|
||||
}
|
||||
UnitGoesOutOfFog(unit, Players[p]);
|
||||
unit.VisCount[p]++;
|
||||
}
|
||||
if (oldv[p] && !newv) {
|
||||
UnitGoesUnderFog(unit, Players[p]);
|
||||
if (unit.VisCount[p]) {
|
||||
unit.VisCount[p]--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue