[Fix] Oops, let's not return if the player has just enough credits.
This commit is contained in:
parent
cdd5549ad3
commit
5ab3eafc4d
@ -196,11 +196,10 @@ static void commodity_buy(unsigned int wid, char* str) {
|
|||||||
int q;
|
int q;
|
||||||
|
|
||||||
q = 10;
|
q = 10;
|
||||||
|
|
||||||
comname = toolkit_getList(wid, "lstGoods");
|
comname = toolkit_getList(wid, "lstGoods");
|
||||||
com = commodity_get(comname);
|
com = commodity_get(comname);
|
||||||
|
|
||||||
if(player->credits <= q * com->medium) {
|
if(player->credits < q * com->medium) {
|
||||||
dialogue_alert("Not enough Scred!");
|
dialogue_alert("Not enough Scred!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user