[Scummvm-git-logs] scummvm master -> 7f03b10f1c600bb20244209c79bc6b2edb7f7115
digitall
noreply at scummvm.org
Sun Jun 26 11:20:09 UTC 2022
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:
7f03b10f1c MTROPLOIS: Fix Clearing of Non-Trivial Class Using Direct Memory Set
Commit: 7f03b10f1c600bb20244209c79bc6b2edb7f7115
https://github.com/scummvm/scummvm/commit/7f03b10f1c600bb20244209c79bc6b2edb7f7115
Author: D G Turner (digitall at scummvm.org)
Date: 2022-06-26T12:17:26+01:00
Commit Message:
MTROPLOIS: Fix Clearing of Non-Trivial Class Using Direct Memory Set
GCC emits a warning for this when -Wclass-memaccess is passed to the
compiler.
Changed paths:
engines/mtropolis/hacks.cpp
diff --git a/engines/mtropolis/hacks.cpp b/engines/mtropolis/hacks.cpp
index 8acf3bb5172..a579011ea6c 100644
--- a/engines/mtropolis/hacks.cpp
+++ b/engines/mtropolis/hacks.cpp
@@ -28,7 +28,13 @@
namespace MTropolis {
Hacks::Hacks() {
- memset(this, 0, sizeof(*this));
+ ignoreMismatchedProjectNameInObjectLookups = false;
+
+ // reportDisplaySize set by Common::Point constructor
+ // mainWindowOffset set by Common::Point constructor
+
+ structuralHooks = nullptr;
+ modifierHooks = nullptr;
}
Hacks::~Hacks() {
More information about the Scummvm-git-logs
mailing list