diff options
author | Johannes Schickel | 2013-11-10 12:58:05 +0100 |
---|---|---|
committer | Johannes Schickel | 2013-11-10 12:58:05 +0100 |
commit | af3059c114303950db592f75e38f0f83b0048b8a (patch) | |
tree | bf2ad3157d77ccd80aa99370c9c9d02ea6d4f815 /engines/kyra | |
parent | 5b1557adbf3525256de2fbc1daa92ac69ffc9410 (diff) | |
download | scummvm-rg350-af3059c114303950db592f75e38f0f83b0048b8a.tar.gz scummvm-rg350-af3059c114303950db592f75e38f0f83b0048b8a.tar.bz2 scummvm-rg350-af3059c114303950db592f75e38f0f83b0048b8a.zip |
KYRA: Properly check parameters in CharacterGenerator::start.
Discoverd by CID #1003816.
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/chargen.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/kyra/chargen.cpp b/engines/kyra/chargen.cpp index 80a95da047..80ff42e2c5 100644 --- a/engines/kyra/chargen.cpp +++ b/engines/kyra/chargen.cpp @@ -155,8 +155,10 @@ CharacterGenerator::~CharacterGenerator() { } bool CharacterGenerator::start(EoBCharacter *characters, uint8 ***faceShapes) { - if (!characters && !faceShapes) + if (!characters || !faceShapes) { + warning("CharacterGenerator::start: Called without character data"); return true; + } _characters = characters; _faceShapes = *faceShapes; |