51
Simutrans-Extended closed bug reports / Query about quickstone error
Last post by jamespetts -Code: [Select]
if( data[id]!=NULL && data[id]!=p ) {
dbg->fatal("quickstone<T>::quickstone_tpl(T*,uint16)","slot (%d) already taken", id);
}
It appeared to come from the code for loading stops, and when I manually moved the line of code execution past the error in a debugger, it would simply return to the breakpoint that I had set there many times over, indicating that, for a particular saved game, the error recurred many times. This was consistent on loading one particular saved game. I commented out the dbg->fatal line, expecting the game either to crash with some access violation when loading or the actual map to be corrupted or missing lots of data (I was hoping that it would help in diagnosing where the problem occurred), but, curiously, when loading the game with that line commented out, it seemed to work fine. More curiously, when then re-saving the game and opening in the released version without that line commented out, that new save also worked without difficulty, with the error not recurring.
Do any of the developers who have more understanding of how the quickstones work than I have any idea what might be going on here? I must admit to being quite mystified.