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:
2026-07-17 00:41:46 +02:00
parent 9dbc24efc1
commit 37c919df90
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -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