Skip to content

Commit

Permalink
Merge pull request #5613 from MjnMixael/fix_get_shipclass_kills
Browse files Browse the repository at this point in the history
Fix Lua API Error with Player Stats
  • Loading branch information
TRBlount committed Sep 20, 2023
2 parents 46fa212 + 35876bc commit ad25418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/scripting/api/objs/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ ADE_FUNC(getMissionShipclassKills,

scoring_stats_h* ssh;
int ship_idx;
if (!ade_get_args(L, "oo|i", l_ScoringStats.GetPtr(&ssh), l_Shipclass.Get(&ship_idx))) {
if (!ade_get_args(L, "oo", l_ScoringStats.GetPtr(&ssh), l_Shipclass.Get(&ship_idx))) {
return ade_set_error(L, "i", -1);
}

Expand Down

0 comments on commit ad25418

Please sign in to comment.