aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD G Turner2019-08-18 02:12:15 +0100
committerD G Turner2019-08-18 02:12:15 +0100
commit1083ff65777867620f28b519bce4ab0d2edda7f1 (patch)
tree3fc774f8bfcc1393f9766d42e983e052376721eb
parentef00f1d05366e1e7e18a339927081e333168879c (diff)
downloadscummvm-rg350-1083ff65777867620f28b519bce4ab0d2edda7f1.tar.gz
scummvm-rg350-1083ff65777867620f28b519bce4ab0d2edda7f1.tar.bz2
scummvm-rg350-1083ff65777867620f28b519bce4ab0d2edda7f1.zip
KYRA: LOL: Fix GCC Compiler Warning from memset Usage
The memset call to clear the Common::Event is unecessary as all fields are cleared either directly by the class constructor or for fields which are struct/class objects, by their constructors.
-rw-r--r--engines/kyra/gui/gui_lol.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/engines/kyra/gui/gui_lol.cpp b/engines/kyra/gui/gui_lol.cpp
index 0c21227b19..293d507e5f 100644
--- a/engines/kyra/gui/gui_lol.cpp
+++ b/engines/kyra/gui/gui_lol.cpp
@@ -798,7 +798,6 @@ void LoLEngine::gui_updateInput() {
void LoLEngine::gui_triggerEvent(int eventType) {
Common::Event evt;
- memset(&evt, 0, sizeof(Common::Event));
evt.mouse.x = _mouseX;
evt.mouse.y = _mouseY;