Fix broken infinite skip turns logic
authorunc0rr
Thu, 10 Sep 2009 12:23:31 +0000
changeset 2371 a20b6e26044b
parent 2370 2ff8fce5e06f
child 2372 f3e7a066c2b8
Fix broken infinite skip turns logic
QTfrontend/selectWeapon.cpp
--- a/QTfrontend/selectWeapon.cpp	Thu Sep 10 12:23:02 2009 +0000
+++ b/QTfrontend/selectWeapon.cpp	Thu Sep 10 12:23:31 2009 +0000
@@ -157,7 +157,7 @@
 	
 	for(int i = 0; i < m_numItems; ++i) {
 		twi::const_iterator it = weaponItems.find(i);
-		int num = it == weaponItems.end() ? 0 : it.value()[0]->getItemsNum();
+		int num = it == weaponItems.end() ? 9 : it.value()[0]->getItemsNum(); // 9 is for 'skip turn'
 		state1.append(QString::number(num));
 		int prob = it == weaponItems.end() ? 0 : it.value()[1]->getItemsNum();
 		state2.append(QString::number(prob));