From 4f078dfcb3653f185ed3f9c7d157bbefa5fecadc Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Mon, 3 Dec 2018 21:57:07 +0100 Subject: [PATCH] - fix compile error --- src/scripting/vmthunks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/vmthunks.cpp b/src/scripting/vmthunks.cpp index 9fab4326fe..4e3f96ce7f 100644 --- a/src/scripting/vmthunks.cpp +++ b/src/scripting/vmthunks.cpp @@ -2060,7 +2060,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(DBaseStatusBar, GetInventoryIcon, GetInventoryIcon PARAM_OBJECT(item, AInventory); PARAM_INT(flags); int applyscale; - FTextureID icon = GetInventoryIcon(item, flags, &applyscale); + FTextureID icon = FSetTextureID(GetInventoryIcon(item, flags, &applyscale)); if (numret >= 1) ret[0].SetInt(icon.GetIndex()); if (numret >= 2) ret[1].SetInt(applyscale); return MIN(numret, 2);