Skip to content

Commit

Permalink
fix "hudgauge" custom parameter
Browse files Browse the repository at this point in the history
Since the `OPF_ANY_HUD_GAUGE` type checks for any default or custom HUD gauge in regular SEXP operators, it should do so in scripted SEXP operators as well.
  • Loading branch information
Goober5000 committed Sep 11, 2024
1 parent 98de732 commit 2f3423d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/parse/sexp/LuaSEXP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ luacpp::LuaValue LuaSEXP::sexpToLua(int node, int argnum, int parent_node) const
}
case OPF_ANY_HUD_GAUGE: {
auto name = CTEXT(node);
return LuaValue::createValue(_action.getLuaState(), l_HudGauge.Set(hud_get_gauge(name)));
return LuaValue::createValue(_action.getLuaState(), l_HudGauge.Set(hud_get_gauge(name, true)));
}
case OPF_EVENT_NAME: {
auto name = CTEXT(node);
Expand Down

0 comments on commit 2f3423d

Please sign in to comment.