- Fixed: using custom automap backgrounds crashed.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@404 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
Christoph Oelckers 2009-07-24 20:25:47 +00:00
parent 8a1f69e42d
commit ee61bdde16
2 changed files with 5 additions and 2 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);
}