Fix warning.

svn-id: r39498
This commit is contained in:
Johannes Schickel 2009-03-17 22:56:20 +00:00
parent cdc05e2ea5
commit 4edee56b3f

View File

@ -1875,7 +1875,7 @@ int gfxop_new_pic(gfx_state_t *state, int nr, int flags, int default_palette) {
} else {
// FIXME: the initialization of the GFX resource manager should
// be pushed up, and it shouldn't occur here
GfxResManager *_gfx = new GfxResManager(state->resstate);
_gfx = new GfxResManager(state->resstate);
state->pic = _gfx->getPic(nr, GFX_MASK_VISUAL, flags, default_palette, false);
delete _gfx;
}