diff --git a/common/map/map_file_format.cpp b/common/map/map_file_format.cpp index d27c664..18374aa 100644 --- a/common/map/map_file_format.cpp +++ b/common/map/map_file_format.cpp @@ -33,7 +33,8 @@ void DummyFormat::Save(Region* const ptr) { void LuaFormat::Load(Region** const ptr, int x, int y) { //something to load into - if (!ptr) { + + if (!(*ptr)) { (*ptr) = new Region(x, y); }