From 5f1ffc653f984f80cf71360364ea6bb4974b43e1 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Sun, 23 Jan 2005 19:00:07 +0000 Subject: bugfix: solves the problem with empty strings; (set adr0 "") an empty string is a valid token! --- src/jake2/game/Cmd.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jake2/game/Cmd.java') 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) { -- cgit v1.2.3