diff options
-rw-r--r-- | engines/sludge/sprites.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/sludge/sprites.cpp b/engines/sludge/sprites.cpp index dbbf74cb5c..b6701d4fa3 100644 --- a/engines/sludge/sprites.cpp +++ b/engines/sludge/sprites.cpp @@ -187,10 +187,7 @@ bool loadSpriteBank(int fileNum, spriteBank &loadhere, bool isFont) { } data = (byte *)new byte[picwidth * (picheight + 1)]; if (!checkNew(data)) return false; - int ooo = picwidth * picheight; - for (int tt = 0; tt < picwidth; tt++) { - data[ooo++] = 0; - } + memset(data + picwidth * picheight, 0, picwidth); spriteData[i] = data; // read color |