1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

CBankInfo: fix huge memory leak that appear in long run

This commit is contained in:
ArseniyShestakov
2015-12-14 11:26:14 +03:00
parent 1ec7d14637
commit 9f565b81e9
2 changed files with 5 additions and 5 deletions

View File

@ -325,10 +325,10 @@ void CBankInstanceConstructor::configureObject(CGObjectInstance * object, CRando
}
}
CBankInfo::CBankInfo(JsonVector config):
config(config)
CBankInfo::CBankInfo(const JsonVector & Config):
config(Config)
{
assert(!config.empty());
assert(!Config.empty());
}
static void addStackToArmy(IObjectInfo::CArmyStructure & army, const CCreature * crea, si32 amount)