diff options
Diffstat (limited to 'sword2/anims.cpp')
-rw-r--r-- | sword2/anims.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sword2/anims.cpp b/sword2/anims.cpp index 52b4a2c258..685d922a02 100644 --- a/sword2/anims.cpp +++ b/sword2/anims.cpp @@ -588,10 +588,10 @@ int32 Logic::fnPlaySequence(int32 *params) { // zero the entire palette in case we're about to fade up! - PalEntry pal[256]; + byte pal[4 * 256]; - memset(pal, 0, 256 * sizeof(PalEntry)); - _vm->_graphics->setPalette(0, 256, (byte *) pal, RDPAL_INSTANT); + memset(pal, 0, sizeof(pal)); + _vm->_graphics->setPalette(0, 256, pal, RDPAL_INSTANT); debug(5, "fnPlaySequence FINISHED"); return IR_CONT; |