aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/graphics/frameout.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp
index 31ad7a50aa..20b8a241aa 100644
--- a/engines/sci/graphics/frameout.cpp
+++ b/engines/sci/graphics/frameout.cpp
@@ -295,7 +295,7 @@ reg_t GfxFrameout::addPlaneLine(reg_t object, Common::Point startPoint, Common::
void GfxFrameout::updatePlaneLine(reg_t object, reg_t hunkId, Common::Point startPoint, Common::Point endPoint, byte color, byte priority, byte control) {
// Check if we're asked to update a line that was never added
- if (object.isNull())
+ if (hunkId.isNull())
return;
for (PlaneList::iterator it = _planes.begin(); it != _planes.end(); ++it) {
@@ -316,7 +316,7 @@ void GfxFrameout::updatePlaneLine(reg_t object, reg_t hunkId, Common::Point star
void GfxFrameout::deletePlaneLine(reg_t object, reg_t hunkId) {
// Check if we're asked to delete a line that was never added (happens during the intro of LSL6)
- if (object.isNull())
+ if (hunkId.isNull())
return;
for (PlaneList::iterator it = _planes.begin(); it != _planes.end(); ++it) {