[Scummvm-git-logs] scummvm master -> e26415ea5b74a323399254fef192d4b6e32cb5bf
aquadran
noreply at scummvm.org
Tue Dec 7 23:33:26 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
e26415ea5b PRIVATE: Fixed const cast
Commit: e26415ea5b74a323399254fef192d4b6e32cb5bf
https://github.com/scummvm/scummvm/commit/e26415ea5b74a323399254fef192d4b6e32cb5bf
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2021-12-08T00:33:22+01:00
Commit Message:
PRIVATE: Fixed const cast
Changed paths:
engines/private/private.cpp
diff --git a/engines/private/private.cpp b/engines/private/private.cpp
index c831ea6884..2aaf235367 100644
--- a/engines/private/private.cpp
+++ b/engines/private/private.cpp
@@ -1254,7 +1254,7 @@ Graphics::Surface *PrivateEngine::decodeImage(const Common::String &name, byte *
newImage = oldImage->convertTo(_pixelFormat, currentPalette);
remapImage(ncolors, oldImage, oldPalette, newImage, currentPalette);
} else {
- currentPalette = (byte *) oldPalette;
+ currentPalette = const_cast<byte *>(oldPalette);
newImage = oldImage->convertTo(_pixelFormat, currentPalette);
}
More information about the Scummvm-git-logs
mailing list