fix input.add_callback

This commit is contained in:
MihailRis 2024-08-06 13:49:22 +03:00
parent ab3df5b640
commit 6a86282d31

View File

@ -42,7 +42,7 @@ static int l_add_callback(lua::State* L) {
if (hud) {
hud->keepAlive(bind->second.onactived.add(callback));
} else {
engine->keepAlive(bind->second.onactived.add(callback));
throw std::runtime_error("on_hud_open is not called yet");
}
return 0;
}