aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/engine/segment.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/segment.h b/engines/sci/engine/segment.h
index 344977c391..adc8f138be 100644
--- a/engines/sci/engine/segment.h
+++ b/engines/sci/engine/segment.h
@@ -740,7 +740,7 @@ public:
case kArrayTypeID: {
reg_t *target = (reg_t *)_data + index;
while (count--) {
- *target = value;
+ *target++ = value;
}
break;
}
@@ -749,7 +749,7 @@ public:
byte *target = (byte *)_data + index;
const byte fillValue = value.getOffset();
while (count--) {
- *target = fillValue;
+ *target++ = fillValue;
}
break;
}