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;
case NETDELAY_OPT:
{
if (parseIntOption (optarg, &netplayOptions.inputDelay,
"network input delay") == -1)
int temp;
if (parseIntOption (optarg, &temp, "network input delay")
== -1)
{
badArg = TRUE;
break;
}
netplayOptions.inputDelay = temp;
if (netplayOptions.inputDelay > 60 * BATTLE_FRAME_RATE)
{