From 92824087945d8a4c64492f64f081fa98876a38ca Mon Sep 17 00:00:00 2001 From: David Eriksson Date: Thu, 6 Nov 2003 21:15:35 +0000 Subject: Bug fix for non-quittable cutaways. svn-id: r11166 --- queen/cutaway.cpp | 2 +- queen/cutaway.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/queen/cutaway.cpp b/queen/cutaway.cpp index cf24ea5162..d4c43a45f9 100644 --- a/queen/cutaway.cpp +++ b/queen/cutaway.cpp @@ -100,7 +100,7 @@ void Cutaway::load(const char *filename) { _comPanel = READ_BE_UINT16(ptr); ptr += 2; - _cutawayObjectCount = READ_BE_UINT16(ptr); + _cutawayObjectCount = (int16)READ_BE_UINT16(ptr); ptr += 2; debug(0, "_cutawayObjectCount = %i", _cutawayObjectCount); diff --git a/queen/cutaway.h b/queen/cutaway.h index 1ae60a4ae2..1d4e0ed0ca 100644 --- a/queen/cutaway.h +++ b/queen/cutaway.h @@ -162,7 +162,7 @@ class Cutaway { bool _roomFade; //! Number of cutaway objects at _cutawayData - int _cutawayObjectCount; + int16 _cutawayObjectCount; //! This cutaway is followed by another bool _anotherCutaway; -- cgit v1.2.3