diff options
Diffstat (limited to 'engines/sci/graphics/plane32.cpp')
-rw-r--r-- | engines/sci/graphics/plane32.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/graphics/plane32.cpp b/engines/sci/graphics/plane32.cpp index 46a8aedbb0..c85965e755 100644 --- a/engines/sci/graphics/plane32.cpp +++ b/engines/sci/graphics/plane32.cpp @@ -44,8 +44,8 @@ void DrawList::add(ScreenItem *screenItem, const Common::Rect &rect) { #pragma mark - #pragma mark Plane -uint16 Plane::_nextObjectId = 20000; -uint32 Plane::_nextCreationId = 0; +uint16 Plane::_nextObjectId; // Will be initialized in Plane::init() +uint32 Plane::_nextCreationId; // ditto Plane::Plane(const Common::Rect &gameRect, PlanePictureCodes pictureId) : _creationId(_nextCreationId++), @@ -132,7 +132,7 @@ void Plane::operator=(const Plane &other) { } void Plane::init() { - _nextObjectId = 20000; + _nextObjectId = g_sci->_features->detectPlaneIdBase(); _nextCreationId = 0; } |