scummvm/scummvm — pull request #403 by rrebello (2013-10-02 08:14:52+00:00)
Title: SAGA: Silent Cppcheck warning in Sprite::loadList().

This patch silents a false positive reported by Cppcheck stating that spriteInfo is invalid after the resize() of spriteList in line 114. It's false because the function returns immediately after the mentioned resize() and spriteInfo doesn't get the chance to be dereferenced while pointing to an invalid address. The patch simply postpones the assignment to spriteInfo, which makes Cppcheck happy and causes no side effects.