diff --git a/Source/Contents/Ground/GroundLightmaps.cpp b/Source/Contents/Ground/GroundLightmaps.cpp index c75d2185d..99834ab3a 100644 --- a/Source/Contents/Ground/GroundLightmaps.cpp +++ b/Source/Contents/Ground/GroundLightmaps.cpp @@ -16,7 +16,7 @@ GroundLightmapSet::~GroundLightmapSet() { void GroundLightmapSet::Clear() { this->lightmaps.clear(); - while (!this->lightmapTextures.empty()) { + while (this->lightmapTextures.size() != 0) { delete this->lightmapTextures.back(); this->lightmapTextures.pop_back(); }