fix
This commit is contained in:
@@ -237,7 +237,7 @@ static bool setattr(lua_State* L, InventoryView* inventory, const std::string& a
|
|||||||
if (inventory == nullptr)
|
if (inventory == nullptr)
|
||||||
return false;
|
return false;
|
||||||
if (attr == "inventory") {
|
if (attr == "inventory") {
|
||||||
auto inv = scripting::level->inventories->get(lua_tointeger(L, 1));
|
auto inv = scripting::level->inventories->get(lua_tointeger(L, 4));
|
||||||
if (inv == nullptr) {
|
if (inv == nullptr) {
|
||||||
inventory->unbind();
|
inventory->unbind();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user