--- a/src/group_cmd.cpp Tue Apr 29 18:19:29 2008 +0000
+++ b/src/group_cmd.cpp Tue Apr 29 21:31:29 2008 +0000
@@ -22,6 +22,7 @@
#include "player_func.h"
#include "order_func.h"
#include "oldpool_func.h"
+#include "core/alloc_func.hpp"
#include "table/strings.h"
@@ -50,12 +51,14 @@
Group::Group(PlayerID owner)
{
this->owner = owner;
+ this->num_engines = CallocT<uint16>(GetEnginePoolSize());
}
Group::~Group()
{
free(this->name);
this->owner = INVALID_PLAYER;
+ free(this->num_engines);
}
bool Group::IsValid() const