diff --git a/src/java/com/threerings/parlor/game/data/GameObject.java b/src/java/com/threerings/parlor/game/data/GameObject.java
index <HASH>..<HASH> 100644
--- a/src/java/com/threerings/parlor/game/data/GameObject.java
+++ b/src/java/com/threerings/parlor/game/data/GameObject.java
@@ -179,7 +179,7 @@ public class GameObject extends PlaceObject
      */
     public boolean isOccupiedPlayer (int pidx)
     {
-        return (players[pidx] != null);
+        return (pidx >= 0 && pidx < players.length) && (players[pidx] != null);
     }
 
     /**
Prevent array index bounds problems if isOccupiedPlayer gets called
with -1 (I saw it happen entering a sword game as a watcher).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@<I> <I>f4-<I>e9-<I>-aa3c-eee0fc<I>fb1