mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
CBankInfo: fix huge memory leak that appear in long run
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user