Skip to content

Commit

Permalink
Fixed issue which caused a crash when starting a second game
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrettin committed Feb 24, 2018
1 parent 4abcd46 commit ce3c672
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stratagus/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1570,6 +1570,8 @@ void CPlayer::Init(/* PlayerTypes */ int type)
this->UnitTypesAiActiveCount.clear();
this->Heroes.clear();
this->Deities.clear();
this->UnitsByType.clear();
this->AiActiveUnitsByType.clear();
//Wyrmgus end

this->Supply = 0;
Expand Down Expand Up @@ -2491,6 +2493,8 @@ void CPlayer::Clear()
//Wyrmgus start
this->Heroes.clear();
this->Deities.clear();
this->UnitsByType.clear();
this->AiActiveUnitsByType.clear();
this->AvailableQuests.clear();
this->CurrentQuests.clear();
this->CompletedQuests.clear();
Expand Down

0 comments on commit ce3c672

Please sign in to comment.