aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/res_struct.h
diff options
context:
space:
mode:
authorThierry Crozat2017-10-06 00:58:32 +0100
committerThierry Crozat2017-10-06 01:01:16 +0100
commit448779ad8ecdb3d7e95f0f475f566fe2eaf3c83f (patch)
tree8ccd9a2b9659e0a896a2850a0fdbfdf0ff090bc5 /engines/lure/res_struct.h
parent51df06523e41d1487b8b36c840509e4627363c7b (diff)
downloadscummvm-rg350-448779ad8ecdb3d7e95f0f475f566fe2eaf3c83f.tar.gz
scummvm-rg350-448779ad8ecdb3d7e95f0f475f566fe2eaf3c83f.tar.bz2
scummvm-rg350-448779ad8ecdb3d7e95f0f475f566fe2eaf3c83f.zip
LURE: Fix undefined behaviour in variadic functions
Passing a type that undergoes default argument promotion as last argument of a variadic function results in undefined behaviour.
Diffstat (limited to 'engines/lure/res_struct.h')
-rw-r--r--engines/lure/res_struct.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/lure/res_struct.h b/engines/lure/res_struct.h
index 685c55ab13..a8a5e5aca8 100644
--- a/engines/lure/res_struct.h
+++ b/engines/lure/res_struct.h
@@ -404,7 +404,7 @@ private:
int _numParams;
public:
CharacterScheduleEntry() { _action = NONE; _parent = NULL; }
- CharacterScheduleEntry(Action theAction, ...);
+ CharacterScheduleEntry(int theAction, ...);
CharacterScheduleEntry(CharacterScheduleSet *parentSet,
CharacterScheduleResource *&rec);
CharacterScheduleEntry(CharacterScheduleEntry *src);
@@ -412,7 +412,7 @@ public:
Action action() { return _action; }
int numParams() { return _numParams; }
uint16 param(int index);
- void setDetails(Action theAction, ...);
+ void setDetails(int theAction, ...);
void setDetails2(Action theAction, int numParamEntries, uint16 *paramList);
CharacterScheduleEntry *next();
CharacterScheduleSet *parent() { return _parent; }