diff --git a/src/scripting/vmthunks.cpp b/src/scripting/vmthunks.cpp index a7de8b2b9..83353ff52 100644 --- a/src/scripting/vmthunks.cpp +++ b/src/scripting/vmthunks.cpp @@ -1542,7 +1542,12 @@ DEFINE_ACTION_FUNCTION_NATIVE(FFont, StringWidth, StringWidth) ACTION_RETURN_INT(StringWidth(self, str)); } -DEFINE_ACTION_FUNCTION_NATIVE(FFont, FindFontColor, V_FindFontColor) +static int FindFontColor(int name) +{ + return V_FindFontColor(ENamedName(name)); +} + +DEFINE_ACTION_FUNCTION_NATIVE(FFont, FindFontColor, FindFontColor) { PARAM_PROLOGUE; PARAM_NAME(code);