On 1/6/07, The Watermelon <[EMAIL PROTECTED]> wrote:

 the latest rev + my changes(quite alot changes,though have little to do
with mem),the game crashed when trying to start 'new campaign'

the crash is pointing to blkAlloc function line 372
'pAlloc = ((UBYTE *)(pAlloc) + sizeof(MEM_NODE) + SAFETY_ZONE_SIZE);'

after

'if MEMORY_SET
memset((UBYTE *)(psNode) + sizeof(MEM_NODE) + SAFETY_ZONE_SIZE,
   INITIALISE_BYTE, allocSize);
endif'

in block.c,so I think it might have something to do with the change you
mentioned above,though re-enable #define MEMORY_SET TRUE in mem.c didnt
fix this problem either.

I'll try to use an older version of block.c,mem.c,mem.h and see if that
fixes my problem.

I found the problem,it's a weirdness of loadPropulsionTypes function in
stats.c,it uses the enum constant instead of 'numCR'(number of newlines in a
txt file) to detect the number of newlines in this buffer to expect,so it's
screwed after I added few new propulsions and changed the enum,hence the
crash.Sorry for the wrong report.
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to