fix input.add_callback
This commit is contained in:
parent
ab3df5b640
commit
6a86282d31
@ -42,7 +42,7 @@ static int l_add_callback(lua::State* L) {
|
|||||||
if (hud) {
|
if (hud) {
|
||||||
hud->keepAlive(bind->second.onactived.add(callback));
|
hud->keepAlive(bind->second.onactived.add(callback));
|
||||||
} else {
|
} else {
|
||||||
engine->keepAlive(bind->second.onactived.add(callback));
|
throw std::runtime_error("on_hud_open is not called yet");
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user