From ed746a6d2d1442dd3756b7de89161cb0bb7ef16e Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sat, 28 Sep 2019 17:10:43 +0200 Subject: [PATCH] Fix Cl2DecodeFrm3 --- Source/engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/engine.cpp b/Source/engine.cpp index d384296f1..c80b1a241 100644 --- a/Source/engine.cpp +++ b/Source/engine.cpp @@ -1600,7 +1600,7 @@ void Cl2DecDatFrm2(BYTE *pDecodeTo, BYTE *pRLEBytes, int nDataSize, int nWidth, */ void Cl2DecodeFrm3(int sx, int sy, BYTE *pCelBuff, int nCel, int nWidth, int CelSkip, int CelCap, char light) { - int nDataSize, idx, nSize; + int nDataSize, idx, nDataSize; BYTE *pRLEBytes, *pDecodeTo; /// ASSERT: assert(gpBuffer != NULL); @@ -1628,7 +1628,7 @@ void Cl2DecodeFrm3(int sx, int sy, BYTE *pCelBuff, int nCel, int nWidth, int Cel Cl2DecDatLightTbl1( pDecodeTo, pRLEBytes, - nSize, + nDataSize, nWidth, &pLightTbl[idx]); }