mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
fix skeleton:index(...)
This commit is contained in:
parent
27a7d7eb44
commit
b23f7e996f
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ static int l_index(lua::State* L) {
|
||||||
if (auto entity = get_entity(L, 1)) {
|
if (auto entity = get_entity(L, 1)) {
|
||||||
auto& skeleton = entity->getSkeleton();
|
auto& skeleton = entity->getSkeleton();
|
||||||
if (auto bone = skeleton.config->find(lua::require_string(L, 2))) {
|
if (auto bone = skeleton.config->find(lua::require_string(L, 2))) {
|
||||||
return lua::tointeger(L, bone->getIndex());
|
return lua::pushinteger(L, bone->getIndex());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue