- fix compile error

This commit is contained in:
Magnus Norddahl 2018-12-03 21:57:07 +01:00
parent 3ac2e74f1c
commit 4f078dfcb3
1 changed files with 1 additions and 1 deletions

View File

@ -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);