aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/saveload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/saveload.cpp')
-rw-r--r--engines/gob/saveload.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/saveload.cpp b/engines/gob/saveload.cpp
index e45ea661b7..0788dc70f9 100644
--- a/engines/gob/saveload.cpp
+++ b/engines/gob/saveload.cpp
@@ -91,7 +91,7 @@ bool TempSprite::saveSprite(const SurfaceDesc &surfDesc) {
}
bool TempSprite::savePalette(const Video::Color *palette) {
- memcpy((byte *) _palette, (byte *) palette, 768);
+ memcpy((byte *) _palette, (const byte *) palette, 768);
return true;
}
@@ -126,7 +126,7 @@ bool TempSprite::toBuffer(byte *buffer, int32 size, bool palette) const {
}
if (palette) {
- memcpy(buffer, (byte *) _palette, 768);
+ memcpy(buffer, (const byte *) _palette, 768);
buffer += 768;
}