fix rendercall wrongly calling tick

This commit is contained in:
Green Sky 2024-01-07 19:03:38 +01:00
parent 2bf6426663
commit 97b727143a
No known key found for this signature in database

View File

@ -140,7 +140,7 @@ float Plugin::tick(float delta) const {
float Plugin::render(float delta) const {
assert(valid_plugin);
if (_fn_render != nullptr) {
return reinterpret_cast<decltype(&solana_plugin_tick)>(_fn_tick)(delta);
return reinterpret_cast<decltype(&solana_plugin_render)>(_fn_render)(delta);
} else {
return std::numeric_limits<float>::max();
}