From 76de780d8b6ffb8f86f3ecb38ec9cde67ce67113 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Wed, 14 Mar 2012 22:31:32 +0000 Subject: [PATCH] Fix (still not enabled) undo/redo code compilation. Also include one comment about a currently failing assertion there. git-svn-id: https://svn.eduke32.com/eduke32@2482 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/astub.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index c87d7e4c9..b3f06fc57 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -460,7 +460,7 @@ void create_map_snapshot(void) mapstate->numsectors = numsectors; mapstate->numwalls = numwalls; - mapstate->numsprites = numsprites; + mapstate->numsprites = Numsprites; tempcrc = crc32once((uint8_t *)§or[0],sizeof(sectortype) * numsectors); @@ -519,8 +519,9 @@ void create_map_snapshot(void) else { int32_t i = 0; - spritetype *tspri = (spritetype *)Bcalloc(1, sizeof(spritetype) * Numsprites + 1), - *spri = &tspri[0]; + spritetype *tspri = (spritetype *)Bcalloc(1, sizeof(spritetype) * Numsprites + 1); + spritetype *spri = tspri; + mapstate->sprites = (spritetype *)Bcalloc(1, sizeof(spritetype) * Numsprites + QADDNSZ); for (j=0; jnumsprites); #ifdef POLYMER