src/group_cmd.cpp
changeset 9700 21cd67d8868f
parent 9070 dd0121143eba
child 9914 c07d0352d8d5
--- a/src/group_cmd.cpp	Wed Jul 23 18:23:12 2008 +0000
+++ b/src/group_cmd.cpp	Wed Jul 23 18:41:15 2008 +0000
@@ -51,7 +51,8 @@
 Group::Group(PlayerID owner)
 {
 	this->owner = owner;
-	this->num_engines = CallocT<uint16>(GetEnginePoolSize());
+
+	if (this->IsValid()) this->num_engines = CallocT<uint16>(GetEnginePoolSize());
 }
 
 Group::~Group()