Crash when changing and saving tile options #6372
Labels
<Crash / Freeze>
Fatal bug that results in hangs or crashes.
Info / User Interface
Game - player communication, menus, etc.
0.9 gf1e6f6b
SDL
Ubuntu 13.10
Changing either of the two options "Options->Graphics->Use tiles" or "Options->Graphics->Choose tileset" causes the game to crash after exiting options and pressing 'Y' to save the options. Settings are saved and take effect normally if game is restarted. Backtrace is:
(gdb) bt
#0 0x0830d743 in map::has_flag_ter_or_furn (this=0xb54bc0bc, flag=TFLAG_INDOORS, x=0, y=0) at src/map.cpp:1283
#1 0x08323618 in map::build_outside_cache (this=0xb54bc0bc) at src/map.cpp:4413
#2 0x08323a77 in map::build_map_cache (this=0xb54bc0bc) at src/map.cpp:4481
#3 0x0818cfaa in game::draw_ter (this=0xb54bc008, posx=0, posy=0) at src/game.cpp:4809
#4 0x0818bf5e in game::draw (this=0xb54bc008) at src/game.cpp:4671
#5 0x0818def5 in game::refresh_all (this=0xb54bc008) at src/game.cpp:4905
#6 0x08506a8f in show_options (ingame=false) at src/options.cpp:982
#7 0x082f4dfd in game::opening_screen (this=0xb54bc008) at src/main_menu.cpp:306
#8 0x082f2d26 in main (argc=0, argv=0xbffff598) at src/main.cpp:144
The text was updated successfully, but these errors were encountered: