Skip to content

Commit 2f3423d

Browse files
committed
fix "hudgauge" custom parameter
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.
1 parent 98de732 commit 2f3423d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/parse/sexp/LuaSEXP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ luacpp::LuaValue LuaSEXP::sexpToLua(int node, int argnum, int parent_node) const
302302
}
303303
case OPF_ANY_HUD_GAUGE: {
304304
auto name = CTEXT(node);
305-
return LuaValue::createValue(_action.getLuaState(), l_HudGauge.Set(hud_get_gauge(name)));
305+
return LuaValue::createValue(_action.getLuaState(), l_HudGauge.Set(hud_get_gauge(name, true)));
306306
}
307307
case OPF_EVENT_NAME: {
308308
auto name = CTEXT(node);

0 commit comments

Comments
 (0)