Found the error in the format functor

I shouldn't automatically guess where an error is, since this project is
so complex.
This commit is contained in:
Kayne Ruse
2014-04-20 05:14:25 +10:00
parent eb0b18af6f
commit 894b46c5db
+2 -1
View File
@@ -33,7 +33,8 @@ void DummyFormat::Save(Region* const ptr) {
void LuaFormat::Load(Region** const ptr, int x, int y) { void LuaFormat::Load(Region** const ptr, int x, int y) {
//something to load into //something to load into
if (!ptr) {
if (!(*ptr)) {
(*ptr) = new Region(x, y); (*ptr) = new Region(x, y);
} }