mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- fix compile error
This commit is contained in:
parent
3ac2e74f1c
commit
4f078dfcb3
1 changed files with 1 additions and 1 deletions
|
@ -2060,7 +2060,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(DBaseStatusBar, GetInventoryIcon, GetInventoryIcon
|
||||||
PARAM_OBJECT(item, AInventory);
|
PARAM_OBJECT(item, AInventory);
|
||||||
PARAM_INT(flags);
|
PARAM_INT(flags);
|
||||||
int applyscale;
|
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 >= 1) ret[0].SetInt(icon.GetIndex());
|
||||||
if (numret >= 2) ret[1].SetInt(applyscale);
|
if (numret >= 2) ret[1].SetInt(applyscale);
|
||||||
return MIN(numret, 2);
|
return MIN(numret, 2);
|
||||||
|
|
Loading…
Reference in a new issue