1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

PreGame: avoid crashing on random map options

Options is still broken, but at least we shouldn't crash there.
This commit is contained in:
ArseniyShestakov
2015-11-25 07:25:44 +03:00
parent 45d183289d
commit 2276af70dc
3 changed files with 12 additions and 5 deletions

View File

@@ -108,6 +108,8 @@ public:
si8 getPlayerCount() const;
void setPlayerCount(si8 value);
si8 getHumanOnlyPlayerCount() const;
/// The count of the teams ranging from 0 to <players count - 1> or RANDOM_SIZE for random.
si8 getTeamCount() const;
void setTeamCount(si8 value);