SCI: fixing const cast warning

making clone happy :D

svn-id: r52339
This commit is contained in:
Martin Kiewitz 2010-08-24 13:37:24 +00:00
parent 83c8ed97e3
commit 10a1806f32

View File

@ -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;
}