QTfrontend/gamecfgwidget.cpp
changeset 1628 4939254196d6
parent 1576 a02353129a41
child 1782 e7589e37a6d6
--- a/QTfrontend/gamecfgwidget.cpp	Fri Jan 09 17:56:53 2009 +0000
+++ b/QTfrontend/gamecfgwidget.cpp	Sat Jan 10 12:02:58 2009 +0000
@@ -197,5 +197,6 @@
 
 void GameCFGWidget::ammoChanged(int index)
 {
-	emit newWeaponScheme(WeaponsName->itemText(index), WeaponsName->itemData(index).toString());
+	if (index >= 0)
+		emit newWeaponScheme(WeaponsName->itemText(index), WeaponsName->itemData(index).toString());
 }