Fix for textured 2d map palette issue in Polymost

git-svn-id: https://svn.eduke32.com/eduke32@61 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2006-04-18 21:17:45 +00:00
parent 078fcb3cae
commit 0d3b0ed600

View file

@ -6169,6 +6169,7 @@ void drawmapview(long dax, long day, long zoome, short ang)
if (palookup[sec->floorpal] != globalpalwritten) if (palookup[sec->floorpal] != globalpalwritten)
{ {
globalpal = sec->floorpal;
globalpalwritten = palookup[sec->floorpal]; globalpalwritten = palookup[sec->floorpal];
if (!globalpalwritten) globalpalwritten = palookup[globalpal]; // JBF: fixes null-pointer crash if (!globalpalwritten) globalpalwritten = palookup[globalpal]; // JBF: fixes null-pointer crash
setpalookupaddress(globalpalwritten); setpalookupaddress(globalpalwritten);