Allocate automap through new for constructor calls

This commit is contained in:
Kp 2014-07-25 01:47:07 +00:00
parent 7f1ccd298b
commit 2a5a81936a

View file

@ -903,11 +903,7 @@ void do_automap()
int pcx_error;
palette_array_t pal;
window *automap_wind = NULL;
automap *am;
CALLOC(am, automap, 1);
if (am)
automap *am = new automap{};
{
automap_wind = window_create(&grd_curscreen->sc_canvas, 0, 0, SWIDTH, SHEIGHT, automap_handler, am);
}