Home » PLAYER'S HQ 1.13 » JA2 Complete Mods & Sequels » Stracciatella Project (Platform Independent JA2) » Crash when going into tactical screen on mine sectors
Re: Crash when going into tactical screen on mine sectors[message #249843] Wed, 21 April 2010 23:34 Go to previous messageGo to previous message
bbun is currently offline bbun

 
Messages:74
Registered:April 2004
Location: Amsterdam
I came across another CTD when entering a San Mona sector without mines. I've now tracked this down to the code calling CompileTileMovementCosts(-1), which seems like an invalid gridNo.

Instead of the previous patch, I tried the following, which seems cleaner, and more right:

Line 1101 in WorldDef.cc
if (usGridNo < WORLD_MAX)

changed into
if (usGridNo < WORLD_MAX && usGridNo != -1)

Report message to a moderator

Corporal
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bus Error @ Tactical screen
Next Topic: Bug: looking for enemies in adjacent sectors
Goto Forum:
  


Current Time: Sat Jan 11 01:58:09 GMT+2 2025

Total time taken to generate the page: 0.01061 seconds