author | rubidium |
Wed, 23 Jul 2008 18:41:15 +0000 | |
changeset 9700 | 21cd67d8868f |
parent 9699 | 33ebfa8216ca |
child 9701 | da907123be89 |
src/group_cmd.cpp | file | annotate | diff | comparison | revisions |
--- 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()