merge flibqtfrontend
authorunc0rr
Fri, 30 Nov 2012 18:19:52 +0400
branchflibqtfrontend
changeset 8141 6482875b0d97
parent 8139 5c38fe3afce4 (current diff)
parent 8135 0401d7c216e0 (diff)
child 8208 171da01bd04d
merge
--- a/project_files/frontlib/model/weapon.c	Fri Nov 30 12:12:49 2012 +0400
+++ b/project_files/frontlib/model/weapon.c	Fri Nov 30 18:19:52 2012 +0400
@@ -56,10 +56,10 @@
 		if(newSet) {
 			newSet->name = flib_strdupnull(name);
 			if(newSet->name) {
-				setField(newSet->loadout, AMMOLINE_DEFAULT_QT, 0, false);
-				setField(newSet->crateprob, AMMOLINE_DEFAULT_PROB, 0, true);
-				setField(newSet->crateammo, AMMOLINE_DEFAULT_CRATE, 0, true);
-				setField(newSet->delay, AMMOLINE_DEFAULT_DELAY, 0, true);
+				setField(newSet->loadout, AMMOLINE_DEFAULT_QT, strlen(AMMOLINE_DEFAULT_QT), false);
+				setField(newSet->crateprob, AMMOLINE_DEFAULT_PROB, strlen(AMMOLINE_DEFAULT_PROB), true);
+				setField(newSet->crateammo, AMMOLINE_DEFAULT_CRATE, strlen(AMMOLINE_DEFAULT_CRATE), true);
+				setField(newSet->delay, AMMOLINE_DEFAULT_DELAY, strlen(AMMOLINE_DEFAULT_DELAY), true);
 				result = newSet;
 				newSet = NULL;
 			}