diff options
author | D G Turner | 2019-09-14 00:54:10 +0100 |
---|---|---|
committer | D G Turner | 2019-09-14 00:54:10 +0100 |
commit | 019de0cc23b698bff56601e662fb5c44cf99a98e (patch) | |
tree | 695cef7e8c2e2c9e561bbc1645aed156d36f5f95 /common | |
parent | 011a9cd43fdcb99259434d2772e34bf2c369bb26 (diff) | |
download | scummvm-rg350-019de0cc23b698bff56601e662fb5c44cf99a98e.tar.gz scummvm-rg350-019de0cc23b698bff56601e662fb5c44cf99a98e.tar.bz2 scummvm-rg350-019de0cc23b698bff56601e662fb5c44cf99a98e.zip |
EVENTRECORDER: Fix GCC Compiler Warnings
These were memcpy usage to copy a non-trivial structure.
Diffstat (limited to 'common')
-rw-r--r-- | common/recorderfile.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/recorderfile.h b/common/recorderfile.h index d34a442604..b1001628b8 100644 --- a/common/recorderfile.h +++ b/common/recorderfile.h @@ -44,6 +44,16 @@ enum RecorderEventType { struct RecorderEvent : Event { RecorderEventType recordedtype; uint32 time; + + RecorderEvent() { + recordedtype = kRecorderEventTypeNormal; + time = 0; + } + + RecorderEvent(const Event &e) : Event(e) { + recordedtype = kRecorderEventTypeNormal; + time = 0; + } }; |