News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

[solved]v101 - pure virtual function call when building a station building

Started by z9999, January 14, 2009, 06:23:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

z9999

How to reproduce:
1. Load attached savegame
2. select "Big modern terminal 2" on airport tool.
3. move cursor to (44,46)
4. click

Quote
Message: karte_t::interactive_event(event_t &ev):   calling a tool
Message: wkz_station_building_aux():   building mail office/station building on square 44,46
FATAL ERROR: unknown
pure virtual function call
Aborting program execution ...


[attachment deleted by admin]


prissi


whoami

I get the same message for other (occupied) tiles, but for (44,46), the crash definitely happens in my setup with r2266 (pak64: r127 +f+w).

z9999

Tested in r2310.
Didn't crash but ...

[edit]
Ahh, this is still dangerous.
If there is a factory or a cityhall at there, we will lost it.
Maybe we might lost savegame.

Why this routine changes the position after checking empty tile.
In this case, checking empty tile is completely meaningless.

prissi

Actually there is first a check (Ist_platz_frei()) only then further checks are done. So there is at least on but probably several bugs.