mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 17:39:46 +00:00
fix fatal errors caused by incorrect interval event callbacks timing
Some checks failed
x86-64 AppImage / build-appimage (ubuntu-22.04) (push) Has been cancelled
Build / Build (push) Has been cancelled
Macos Build / build-dmg (push) Has been cancelled
Windows Build (CLang) / build-windows (clang, windows-latest) (push) Has been cancelled
MSVC Build / build-windows (windows-2022) (push) Has been cancelled
Some checks failed
x86-64 AppImage / build-appimage (ubuntu-22.04) (push) Has been cancelled
Build / Build (push) Has been cancelled
Macos Build / build-dmg (push) Has been cancelled
Windows Build (CLang) / build-windows (clang, windows-latest) (push) Has been cancelled
MSVC Build / build-windows (windows-2022) (push) Has been cancelled
This commit is contained in:
parent
97c790350d
commit
9be7cfa724
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ void Container::act(float delta) {
|
|||
intervalEvents[i].timer += delta;
|
||||
if (intervalEvents[i].timer > intervalEvents[i].interval) {
|
||||
auto callback = intervalEvents[i].callback;
|
||||
callback();
|
||||
gui.postRunnable(callback);
|
||||
IntervalEvent& event = intervalEvents[i];
|
||||
if (event.repeat == 0) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue