diff --git a/src/land.c b/src/land.c index 00b4e29..e6afc6c 100644 --- a/src/land.c +++ b/src/land.c @@ -196,11 +196,10 @@ static void commodity_buy(unsigned int wid, char* str) { int q; q = 10; - comname = toolkit_getList(wid, "lstGoods"); com = commodity_get(comname); - if(player->credits <= q * com->medium) { + if(player->credits < q * com->medium) { dialogue_alert("Not enough Scred!"); return; }