mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
SCI: fixing const cast warning
making clone happy :D svn-id: r52339
This commit is contained in:
parent
83c8ed97e3
commit
10a1806f32
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user