Crash fix when using LOBOT: We never actually set the paletteTable->pForcedPalette, so it was doing some weird stuff when it got used. The flash white code sets the pSoldier's forced palette, so now it works as it should (by Asdow)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8922 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Sevenfm
2021-01-26 20:54:59 +00:00
parent e39158569b
commit 2ff6826b8e
+1 -1
View File
@@ -955,7 +955,7 @@ inline UINT16 * GetShadeTable(LEVELNODE * pNode, SOLDIERTYPE * pSoldier, SOLDIER
{ {
if (pSoldier->flags.fForceShade) if (pSoldier->flags.fForceShade)
{ {
pShadeTable = pPaletteTable->pForcedShade; pShadeTable = pSoldier->pForcedShade;
} }
} }
// check if we are a merc duplicate, if so, only do minimal stuff! // check if we are a merc duplicate, if so, only do minimal stuff!