From bcc32046e8ebb9acd4ee5a183462beec10c56a8b Mon Sep 17 00:00:00 2001 From: flowtron Date: Thu, 1 Jul 2010 20:56:42 +0000 Subject: [PATCH] and finally I see what I missed before git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5260 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/worldio.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/worldio.cpp b/source/src/worldio.cpp index 4fc398ca..fd76f950 100644 --- a/source/src/worldio.cpp +++ b/source/src/worldio.cpp @@ -627,7 +627,7 @@ bool load_world(char *mname) // still supports all map formats that have if(f) delete f; c2skeepalive(); int cwx, cwy; - loopi(7) mapdims[i] = 0; // this is not needed Brahma - see code below - it's basically a good thing, but the code clearly will not fail w/o it. + loopi(7) mapdims[i] = 0; loopk(4) mapdims[k] = k < 2 ? ssize : 0; loopk(cubicsize) // FIXME // it is really necessary to loop again? // yes it, basically, is { @@ -658,6 +658,7 @@ bool load_world(char *mname) // still supports all map formats that have */ int *mapll; mapll = new int[ssize]; // for testing + mapdims[6] = 0; // ok - I was missing this - it was the last added stuff, so - okay - you're right up there, after all. loopj(ssize) { int crc = 0;