Skip to content

Commit

Permalink
Fix Lua onItemCheck
Browse files Browse the repository at this point in the history
onItemCheck was incorrectly returning the user in two parameters instead of the item in the second param slot
  • Loading branch information
The-Aerec committed May 30, 2024
1 parent 3a93950 commit 466ef6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/lua/luautils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2590,7 +2590,7 @@ namespace luautils
caster = CLuaBaseEntity(PCaster);
}

auto result = onItemCheck(CLuaBaseEntity(PTarget), caster, static_cast<uint32>(param));
auto result = onItemCheck(CLuaBaseEntity(PTarget), CLuaItem(PItem), static_cast<uint32>(param), caster);
if (!result.valid())
{
sol::error err = result;
Expand Down

0 comments on commit 466ef6f

Please sign in to comment.