fix rigidbody:is_enabled

This commit is contained in:
MihailRis 2025-01-16 18:17:12 +03:00
parent 1a246e2ae0
commit 2adfbdb192

View File

@ -17,7 +17,7 @@ static int l_set_vel(lua::State* L) {
static int l_is_enabled(lua::State* L) {
if (auto entity = get_entity(L, 1)) {
lua::pushboolean(L, entity->getRigidbody().enabled);
return lua::pushboolean(L, entity->getRigidbody().enabled);
}
return 0;
}