(svn r13807) -Fix: memory leak when loading groups.

This commit is contained in:
rubidium 2008-07-23 18:41:15 +00:00
parent c0e11a797c
commit 1560fe3298
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ DEFINE_OLD_POOL_GENERIC(Group, Group)
Group::Group(PlayerID owner)
{
this->owner = owner;
this->num_engines = CallocT<uint16>(GetEnginePoolSize());
if (this->IsValid()) this->num_engines = CallocT<uint16>(GetEnginePoolSize());
}
Group::~Group()