aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/client/CL.java
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2005-06-07 12:57:21 +0000
committerHolger Zickner <[email protected]>2005-06-07 12:57:21 +0000
commit208726eafe79124ce581c52db6d5de164a611bd2 (patch)
tree7c00b3f3cc4e045d11c13543d1dd61141717d66c /src/jake2/client/CL.java
parent322270ce27ba041f360e12bb0cc98b8c7c128118 (diff)
replace Integer.parseInt() to prevent exceptions
Diffstat (limited to 'src/jake2/client/CL.java')
-rw-r--r--src/jake2/client/CL.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jake2/client/CL.java b/src/jake2/client/CL.java
index fd1c4d0..83a1191 100644
--- a/src/jake2/client/CL.java
+++ b/src/jake2/client/CL.java
@@ -2,7 +2,7 @@
* CL.java
* Copyright (C) 2004
*
- * $Id: CL.java,v 1.21 2005-05-14 10:10:44 hzi Exp $
+ * $Id: CL.java,v 1.22 2005-06-07 12:57:21 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -851,7 +851,7 @@ public final class CL {
// challenge from the server we are connecting to
if (c.equals("challenge")) {
- Globals.cls.challenge = Integer.parseInt(Cmd.Argv(1));
+ Globals.cls.challenge = Lib.atoi(Cmd.Argv(1));
SendConnectPacket();
return;
}