From 894b46c5db5342fb5f21480b768bc69b7e5f881e Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sun, 20 Apr 2014 05:14:25 +1000 Subject: [PATCH] Found the error in the format functor I shouldn't automatically guess where an error is, since this project is so complex. --- common/map/map_file_format.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }