From 32e8e45d4b10655927a780b06ddb4544e3796722 Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Fri, 9 Nov 2018 18:52:48 +1100 Subject: [PATCH] fix possible shares issue --- gamemodes/irresistible/cnr/features/stocks/stocks.pwn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gamemodes/irresistible/cnr/features/stocks/stocks.pwn b/gamemodes/irresistible/cnr/features/stocks/stocks.pwn index f82525b..40470c7 100644 --- a/gamemodes/irresistible/cnr/features/stocks/stocks.pwn +++ b/gamemodes/irresistible/cnr/features/stocks/stocks.pwn @@ -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; }