aboutsummaryrefslogtreecommitdiff
path: root/sword2/driver/render.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-08-20 06:48:07 +0000
committerTorbjörn Andersson2003-08-20 06:48:07 +0000
commitc2df1277a61d224663d17dbd52ab18863dd36bdc (patch)
tree6d47e7b72e635c855127fc442facf57548c824b5 /sword2/driver/render.cpp
parentd0faf4c225ffdcc8e661057b3ebd70ddf0ef3876 (diff)
downloadscummvm-rg350-c2df1277a61d224663d17dbd52ab18863dd36bdc.tar.gz
scummvm-rg350-c2df1277a61d224663d17dbd52ab18863dd36bdc.tar.bz2
scummvm-rg350-c2df1277a61d224663d17dbd52ab18863dd36bdc.zip
This should fix the crash in the demo when you tried to walk down the
stairs to the water. (And probably countless other places as well.) svn-id: r9787
Diffstat (limited to 'sword2/driver/render.cpp')
-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;
}
}