Skip to content

Commit

Permalink
Fix incorrectly retrieving userdata from stack
Browse files Browse the repository at this point in the history
  • Loading branch information
Derpius committed Feb 20, 2023
1 parent 5c2d05a commit 3c0ef66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/VisTrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ LUA_FUNCTION(TraceResult_Pos)
LUA_FUNCTION(TraceResult_Incident)
{
LUA->CheckType(1, TraceResult::id);
TraceResult* pResult = LUA->GetUserType<TraceResult>(1, TraceResult::id);
TraceResult* pResult = *LUA->GetUserType<TraceResult*>(1, TraceResult::id);

LUA->PushVector(MakeVector(pResult->wo.x, pResult->wo.y, pResult->wo.z));
return 1;
Expand Down

0 comments on commit 3c0ef66

Please sign in to comment.