# HG changeset patch # User unc0rr # Date 1231588978 0 # Node ID 4939254196d6e26059e9a243093f5106dc6732bf # Parent efcf6e976869f6d74fa254d8abd5bb9695ada29f Don't send empty ammo scheme to server when changing ammo schemes in room (fixes 'bad state' server message) diff -r efcf6e976869 -r 4939254196d6 QTfrontend/gamecfgwidget.cpp --- 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()); }