diff options
Diffstat (limited to 'engines/prince/script.cpp')
-rw-r--r-- | engines/prince/script.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/engines/prince/script.cpp b/engines/prince/script.cpp index 4ed3cee6f3..23ef24a268 100644 --- a/engines/prince/script.cpp +++ b/engines/prince/script.cpp @@ -8,12 +8,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. @@ -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); |