diff options
author | Torbjörn Andersson | 2003-08-20 06:48:07 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-08-20 06:48:07 +0000 |
commit | c2df1277a61d224663d17dbd52ab18863dd36bdc (patch) | |
tree | 6d47e7b72e635c855127fc442facf57548c824b5 /sword2 | |
parent | d0faf4c225ffdcc8e661057b3ebd70ddf0ef3876 (diff) | |
download | scummvm-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')
-rw-r--r-- | sword2/driver/render.cpp | 1 |
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; } } |