[Scummvm-git-logs] scummvm master -> 0d3cdd304762629f623ce5dda161ad6486288b49
digitall
noreply at scummvm.org
Wed May 22 00:48:00 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:
0d3cdd3047 DIRECTOR: Fix Memset On Non-Trivial Structure GCC Compiler Warning
Commit: 0d3cdd304762629f623ce5dda161ad6486288b49
https://github.com/scummvm/scummvm/commit/0d3cdd304762629f623ce5dda161ad6486288b49
Author: D G Turner (digitall at scummvm.org)
Date: 2024-05-22T01:47:35+01:00
Commit Message:
DIRECTOR: Fix Memset On Non-Trivial Structure GCC Compiler Warning
Changed paths:
engines/director/debugtools.cpp
diff --git a/engines/director/debugtools.cpp b/engines/director/debugtools.cpp
index 65680f1af86..3bc51ec3e6b 100644
--- a/engines/director/debugtools.cpp
+++ b/engines/director/debugtools.cpp
@@ -2170,7 +2170,14 @@ void onImGuiRender() {
if (!_state->_wasHidden) {
_state->_savedW = _state->_w;
- memset(&_state->_w, 0, sizeof(_state->_w));
+ _state->_w.controlPanel = false;
+ _state->_w.callStack = false;
+ _state->_w.vars = false;
+ _state->_w.channels = false;
+ _state->_w.cast = false;
+ _state->_w.funcList = false;
+ _state->_w.score = false;
+ _state->_w.bpList = false;
}
_state->_wasHidden = true;
More information about the Scummvm-git-logs
mailing list