From aef78077e88da4626eddadd1cb8b13eaab3a16ca Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 29 Dec 2008 11:23:41 -0500 Subject: Fixed bounds check in Item --- sigmod/Item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sigmod/Item.cpp') diff --git a/sigmod/Item.cpp b/sigmod/Item.cpp index 172660a8..0ac9f360 100644 --- a/sigmod/Item.cpp +++ b/sigmod/Item.cpp @@ -123,7 +123,7 @@ GETTER(Item, Sigcore::Script, script) CHECK(Item, QString&, name) CHECK(Item, bool, sellable) -CHECK_INDEX(Item, int, type, sigmod(), type) +CHECK_INDEX(Item, int, type, sigmod(), itemType) CHECK_BOUNDS(Item, int, price, 1, sigmod()->rules()->maxMoney()) CHECK_BOUNDS(Item, int, sellPrice, 0, m_price) CHECK_BEGIN(Item, int, weight) -- cgit