fix the stupid

This commit is contained in:
MihailRis 2025-12-07 03:23:48 +03:00
parent b06ff0f763
commit 5f69ddf6f5
3 changed files with 3 additions and 10 deletions

View file

@ -520,7 +520,7 @@ static int l_pull_events(lua::State* L, network::Network& network) {
}
static int l_is_available(lua::State* L) {
return engine->getNetwork() != nullptr;
return lua::pushboolean(L, engine->getNetwork() != nullptr);
}
template <int(*func)(lua::State*, network::Network&)>