diff options
Diffstat (limited to 'engines/prince/script.cpp')
-rw-r--r-- | engines/prince/script.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/prince/script.cpp b/engines/prince/script.cpp index 4ed3cee6f3..89e22b586e 100644 --- a/engines/prince/script.cpp +++ b/engines/prince/script.cpp @@ -400,9 +400,12 @@ bool Script::loadAllMasks(Common::Array<Mask> &maskList, int offset) { return false; } delete msStream; + + tempMask._width = tempMask.getWidth(); + tempMask._height = tempMask.getHeight(); + } else { + return false; } - tempMask._width = tempMask.getWidth(); - tempMask._height = tempMask.getHeight(); } maskList.push_back(tempMask); |