From dfb4de060872606940029026615b4f37faebf5af Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 6 Dec 2006 02:50:32 +0000 Subject: [PATCH] Wee Occam Jr., with his shiny oversized plastic "My First Razor"! git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4469 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/Hashtable.as | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/as/com/threerings/util/Hashtable.as b/src/as/com/threerings/util/Hashtable.as index a3a48d628..3b7663c39 100644 --- a/src/as/com/threerings/util/Hashtable.as +++ b/src/as/com/threerings/util/Hashtable.as @@ -76,15 +76,13 @@ public class Hashtable var hash :int = hkey.hashCode(); var index :int = indexFor(hash); var e :Entry = (_entries[index] as Entry); - while (true) { - if (e == null) { - return undefined; - } + while (e != null) { if (e.hash == hash && e.key.equals(hkey)) { return e.value; } e = e.next; } + return undefined; } // documentation inherited from interface Map