diff options
author | yinsimei | 2017-06-06 10:25:03 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | 09b4a0675e95e003ccea691f1c9e5a95aec4149c (patch) | |
tree | 0ae4ed77d621e7cd4b361395c5d7d074b756b8d5 /engines/sludge | |
parent | 78cba75570115cf598a0c6c27a660f1ae0e985d6 (diff) | |
download | scummvm-rg350-09b4a0675e95e003ccea691f1c9e5a95aec4149c.tar.gz scummvm-rg350-09b4a0675e95e003ccea691f1c9e5a95aec4149c.tar.bz2 scummvm-rg350-09b4a0675e95e003ccea691f1c9e5a95aec4149c.zip |
SLUDGE: remove value setting loop by memset
Diffstat (limited to 'engines/sludge')
-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 |