[Fix] Oops, let's not return if the player has just enough credits.

This commit is contained in:
Allanis 2014-03-18 15:26:32 +00:00
parent cdd5549ad3
commit 5ab3eafc4d

View File

@ -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;
} }