diff options
author | Carsten Weisse <[email protected]> | 2005-01-23 19:00:07 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2005-01-23 19:00:07 +0000 |
commit | 5f1ffc653f984f80cf71360364ea6bb4974b43e1 (patch) | |
tree | 3526f93b292039ece9d0706c318cc64f4de4dd2c /src/jake2/game/Cmd.java | |
parent | 15ce2480f654e9c3abd7d250dfa2ae7031056d22 (diff) |
bugfix: solves the problem with empty strings;
(set adr0 "") an empty string is a valid token!
Diffstat (limited to 'src/jake2/game/Cmd.java')
-rw-r--r-- | src/jake2/game/Cmd.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jake2/game/Cmd.java b/src/jake2/game/Cmd.java index ef7dd77..749612e 100644 --- a/src/jake2/game/Cmd.java +++ b/src/jake2/game/Cmd.java @@ -2,7 +2,7 @@ * Cmd.java * Copyright (C) 2003 * - * $Id: Cmd.java,v 1.8 2004-10-29 00:20:05 cawe Exp $ + * $Id: Cmd.java,v 1.9 2005-01-23 19:00:07 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -284,7 +284,7 @@ public final class Cmd { com_token = Com.Parse(ph); - if (com_token.length() == 0) + if (com_token == null) return; if (cmd_argc < Defines.MAX_STRING_TOKENS) { |