I'm disabling teleporting to npcs at this position but there may be more issues in the future.
Program received signal SIGSEGV, Segmentation fault.
0x0049e0f3 in MapWindow::drawRoofs (this=0x1ac3b98) at MapWindow.cpp:1100
1100 if(roof_map_ptr[j] != 0)
(gdb) bt
#0 0x0049e0f3 in MapWindow::drawRoofs (this=0x1ac3b98) at MapWindow.cpp:1100
#1 0x0049d0d1 in MapWindow::Display (this=0x1ac3b98, full_redraw=false)
at MapWindow.cpp:673
#2 0x004157db in GUI::Display (this=0x1604df0) at GUI/GUI.cpp:208
#3 0x00496258 in Game::play (this=0x1a65098) at Game.cpp:516
#4 0x004b5f4a in Nuvie::play (this=0x1603b60) at nuvie.cpp:153
#5 0x004b5903 in SDL_main (argc=1, argv=0x1602540) at main.cpp:74
#6 0x004db2d9 in console_main (argc=1, argv=0x1602540)
at ./src/main/win32/SDL_win32_main.c:315
#7 0x004db39b in WinMain@16 (hInst=0x400000, hPrev=0x0,
szCmdLine=0x251ef5 "", sw=10) at ./src/main/win32/SDL_win32_main.c:398
#8 0x0058e20b in main ()
Actually, I decided not to disable it since it doesn't crash without the roofs and people might want the npcs at that location.
This seems to be caused by cur_y being negative.