Get rid of warning.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2789 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2007-06-27 20:50:10 +00:00
parent d06ee64f49
commit 473440c7ec
+4 -2
View File
@@ -836,12 +836,14 @@ parseOptions (int argc, char *argv[], struct options_struct *options)
break; break;
case NETDELAY_OPT: case NETDELAY_OPT:
{ {
if (parseIntOption (optarg, &netplayOptions.inputDelay, int temp;
"network input delay") == -1) if (parseIntOption (optarg, &temp, "network input delay")
== -1)
{ {
badArg = TRUE; badArg = TRUE;
break; break;
} }
netplayOptions.inputDelay = temp;
if (netplayOptions.inputDelay > 60 * BATTLE_FRAME_RATE) if (netplayOptions.inputDelay > 60 * BATTLE_FRAME_RATE)
{ {