Skip to content

Commit

Permalink
Fixes bug with applying disabled items (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
TiBarification authored Jun 7, 2022
1 parent 37ea986 commit aaba3ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/sourcemod/scripting/shop.sp
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,8 @@ public int OnItemSelect(Menu menu, MenuAction action, int param1, int param2)
case MenuAction_DrawItem :
{
char info[16];
menu.GetItem(param2, info, sizeof(info));
int style;
menu.GetItem(param2, info, sizeof(info), style);

bool disabled;
Action result = Forward_OnItemDraw(param1, bInv[param1] ? Menu_Inventory : Menu_Buy, iClCategoryId[param1], StringToInt(info), disabled);
Expand All @@ -774,6 +775,7 @@ public int OnItemSelect(Menu menu, MenuAction action, int param1, int param2)
{
return ITEMDRAW_DISABLED;
}
return style;
}
case MenuAction_DisplayItem:
{
Expand Down

0 comments on commit aaba3ba

Please sign in to comment.