mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-25 07:29:10 +00:00
(svn r13807) -Fix: memory leak when loading groups.
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user