diff options
Diffstat (limited to 'engines/wintermute')
-rw-r--r-- | engines/wintermute/ad/ad_scene.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/wintermute/ad/ad_scene.cpp b/engines/wintermute/ad/ad_scene.cpp index ddaf4d0adb..76238c1850 100644 --- a/engines/wintermute/ad/ad_scene.cpp +++ b/engines/wintermute/ad/ad_scene.cpp @@ -2214,6 +2214,9 @@ bool AdScene::saveAsText(BaseDynamicBuffer *buffer, int indent) { //////////////////////////////////////////////////////////////////////////
bool AdScene::sortScaleLevels() {
+ if (_scaleLevels.size() == 0) {
+ return STATUS_OK;
+ }
bool changed;
do {
changed = false;
@@ -2235,6 +2238,9 @@ bool AdScene::sortScaleLevels() { //////////////////////////////////////////////////////////////////////////
bool AdScene::sortRotLevels() {
+ if (_rotLevels.size() == 0) {
+ return STATUS_OK;
+ }
bool changed;
do {
changed = false;
|