diff options
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r-- | engines/sci/sci.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index a190bbb7d2..455cfafe11 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -381,7 +381,7 @@ void SciEngine::patchGameSaveRestore(SegManager *segMan) { } if (scriptRestorePtr) { // Now patch in our code - byte *patchPtr = (byte *)scriptRestorePtr; + byte *patchPtr = const_cast<byte *>(scriptRestorePtr); memcpy(patchPtr, patchGameRestore, sizeof(patchGameRestore)); patchPtr[8] = kernelIdRestore; } |