Don't call allocateArrays from readMAXS, rather call it explicitly after calling readMAXS; init _palManipCounter in the proper place (only needed when restarting); free palManip data on exit
svn-id: r17495
This commit is contained in:
parent
78f2f279c4
commit
cfe85b8618
7 changed files with 25 additions and 43 deletions
|
@ -1169,6 +1169,9 @@ ScummEngine::~ScummEngine() {
|
|||
delete _costumeRenderer;
|
||||
|
||||
free(_shadowPalette);
|
||||
|
||||
free(_palManipPalette);
|
||||
free(_palManipIntermediatePal);
|
||||
|
||||
res.freeResources();
|
||||
if (_heversion >= 70) {
|
||||
|
@ -1403,6 +1406,8 @@ void ScummEngine::scummInit() {
|
|||
initScreens(16, 144);
|
||||
}
|
||||
|
||||
_palManipCounter = 0;
|
||||
|
||||
for (i = 0; i < 256; i++)
|
||||
_roomPalette[i] = i;
|
||||
if (_version == 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue