From c2df1277a61d224663d17dbd52ab18863dd36bdc Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Wed, 20 Aug 2003 06:48:07 +0000 Subject: 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 --- sword2/driver/render.cpp | 1 + 1 file changed, 1 insertion(+) 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; } } -- cgit v1.2.3