interval was being ignored because of type error
size_t interval should've been a double, but was being implicitly converted, so it worked, compiled. but not like I intended.
This commit is contained in:
@@ -39,12 +39,12 @@ public:
|
||||
|
||||
|
||||
//infinite timer
|
||||
timer(std::string name_input, size_t interval_input,
|
||||
timer(std::string name_input, double interval_input,
|
||||
std::unique_ptr<timeraction> action_input
|
||||
);
|
||||
|
||||
//limited timer
|
||||
timer(std::string name, size_t interval_input, int triggeramount,
|
||||
timer(std::string name, double interval_input, int triggeramount,
|
||||
std::unique_ptr<timeraction> action
|
||||
);
|
||||
// callbackfunc once enough time has accumulated
|
||||
|
||||
Reference in New Issue
Block a user