fix possible shares issue

This commit is contained in:
Lorenc Pekaj 2018-11-09 18:52:48 +11:00
parent 7dc93e5023
commit 32e8e45d4b

View File

@ -562,6 +562,10 @@ thread StockMarket_OnShowShares( playerid )
p_PlayerShares[ playerid ] [ stockid ] = shares;
p_PlayerHasShare[ playerid ] { stockid } = true;
}
else
{
p_PlayerHasShare[ playerid ] { stockid } = false;
}
}
return ShowPlayerDialog( playerid, DIALOG_PLAYER_STOCKS, DIALOG_STYLE_TABLIST_HEADERS, ""COL_WHITE"Stock Market", szLargeString, "Select", "Close" ), 1;
}