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

Add reset to some static variables on client

This commit is contained in:
Arseniy Shestakov
2016-08-25 15:52:20 +03:00
parent f020fa06fd
commit a90b657b86
5 changed files with 16 additions and 0 deletions

View File

@@ -762,6 +762,11 @@ void CGQuestGuard::completeQuest(const CGHeroInstance *h) const
cb->removeObject(this);
}
void CGKeys::reset()
{
playerKeyMap.clear();
}
void CGKeys::setPropertyDer (ui8 what, ui32 val) //101-108 - enable key for player 1-8
{
if (what >= 101 && what <= (100 + PlayerColor::PLAYER_LIMIT_I))