aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
Diffstat (limited to 'sword2')
-rw-r--r--sword2/driver/render.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/sword2/driver/render.cpp b/sword2/driver/render.cpp
index 0d21d30b18..ee0cd1c7fd 100644
--- a/sword2/driver/render.cpp
+++ b/sword2/driver/render.cpp
@@ -1260,6 +1260,7 @@ int32 CloseBackgroundLayer(void)
if (blockSurfaces[j][i])
delete blockSurfaces[j][i];
free(blockSurfaces[j]);
+ blockSurfaces[j] = NULL;
}
}