diff --git a/source/glest_game/world/unit_updater.cpp b/source/glest_game/world/unit_updater.cpp index 0b711083..216fc71d 100644 --- a/source/glest_game/world/unit_updater.cpp +++ b/source/glest_game/world/unit_updater.cpp @@ -43,6 +43,18 @@ namespace Glest{ namespace Game{ // ===================== PUBLIC ======================== +UnitUpdater::UnitUpdater() { + this->game= NULL; + this->gui= NULL; + this->gameCamera= NULL; + this->world= NULL; + this->map= NULL; + this->console= NULL; + this->scriptManager= NULL; + this->routePlanner = NULL; + this->pathFinder = NULL; +} + void UnitUpdater::init(Game *game){ this->game= game; diff --git a/source/glest_game/world/unit_updater.h b/source/glest_game/world/unit_updater.h index 5a14bd5f..400c1c14 100644 --- a/source/glest_game/world/unit_updater.h +++ b/source/glest_game/world/unit_updater.h @@ -60,6 +60,7 @@ private: RandomGen random; public: + UnitUpdater(); void init(Game *game); ~UnitUpdater();