diff --git a/source/glest_game/world/unit_updater.cpp b/source/glest_game/world/unit_updater.cpp index c1783192..09676f9d 100644 --- a/source/glest_game/world/unit_updater.cpp +++ b/source/glest_game/world/unit_updater.cpp @@ -1516,7 +1516,7 @@ void UnitUpdater::updateMorph(Unit *unit){ break; case pfRoutePlanner: if (needMapUpdate) { - int size = std::max(oldSize, unit->getType()->getSize()); + int size = max(oldSize, unit->getType()->getSize()); world->getCartographer()->updateMapMetrics(unit->getPos(), size); } break;