mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix input.add_callback
This commit is contained in:
parent
ab3df5b640
commit
6a86282d31
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue