Changeset - r9700:d86fb8ec80d5
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2008-07-23 18:41:15
rubidium@openttd.org
(svn r13807) -Fix: memory leak when loading groups.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/group_cmd.cpp
Show inline comments
 
@@ -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()
0 comments (0 inline, 0 general)