[Scummvm-git-logs] scummvm master -> af3943d8422f9b600e84f967af57b23bb2f6dfcd

aquadran noreply at scummvm.org
Mon Nov 18 11:46:47 UTC 2024


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:
af3943d842 WINTERMUTE: Fixed arithmetic typo in protect external dll plugin


Commit: af3943d8422f9b600e84f967af57b23bb2f6dfcd
    https://github.com/scummvm/scummvm/commit/af3943d8422f9b600e84f967af57b23bb2f6dfcd
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2024-11-18T12:46:42+01:00

Commit Message:
WINTERMUTE: Fixed arithmetic typo in protect external dll plugin

Changed paths:
    engines/wintermute/ext/dll_protect.cpp


diff --git a/engines/wintermute/ext/dll_protect.cpp b/engines/wintermute/ext/dll_protect.cpp
index a6db867cd8a..8abbcbe868b 100644
--- a/engines/wintermute/ext/dll_protect.cpp
+++ b/engines/wintermute/ext/dll_protect.cpp
@@ -75,7 +75,7 @@ bool EmulateProtectExternalCalls(BaseGame *inGame, ScStack *stack, ScStack *this
 		bool flag3 = false;
 		bool flag4 = false;
 		bool flag5 = false;
-		*(uint32 *)(buffer) = (flag1 ? (1 < 0) : 0) | (flag2 ? (1 < 1) : 0) | (flag3 ? (1 < 2) : 0) | (flag4 ? (1 < 3) : 0) | (flag5 ? (1 < 4) : 0);
+		*(uint32 *)(buffer) = (flag1 ? (1 << 0) : 0) | (flag2 ? (1 << 1) : 0) | (flag3 ? (1 << 2) : 0) | (flag4 ? (1 << 3) : 0) | (flag5 ? (1 << 4) : 0);
 
 		stack->pushInt(0);
 		return STATUS_OK;




More information about the Scummvm-git-logs mailing list