From 014165de6996ccf8a08baa36899fc75e04c24b69 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 25 Aug 2010 16:01:24 +0000 Subject: [PATCH] - explicitly clear the cache. --- source/glest_game/world/unit_updater.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/glest_game/world/unit_updater.cpp b/source/glest_game/world/unit_updater.cpp index eaa59fcd..35205d20 100644 --- a/source/glest_game/world/unit_updater.cpp +++ b/source/glest_game/world/unit_updater.cpp @@ -83,6 +83,8 @@ void UnitUpdater::init(Game *game){ } UnitUpdater::~UnitUpdater() { + UnitRangeCellsLookupItemCache.clear(); + delete pathFinder; pathFinder = NULL; }