- Fixed: using custom automap backgrounds crashed.

SVN r1735 (trunk)
This commit is contained in:
Christoph Oelckers 2009-07-24 20:25:19 +00:00
commit 25c0f679cb
3 changed files with 6 additions and 3 deletions

View file

@ -854,7 +854,7 @@ void AM_loadPics ()
marknums[i] = TexMan.CheckForTexture (namebuf, FTexture::TEX_MiscPatch);
}
const char *autopage = level.info->mapbg[0] == 0? "AUTOPAGE" : (const char*)level.info->mapbg[0];
const char *autopage = level.info->mapbg[0] == 0? "AUTOPAGE" : (const char*)&level.info->mapbg[0];
mapback = TexMan.CheckForTexture(autopage, FTexture::TEX_MiscPatch);
}