Ignore non-existent bodies when players knocked out.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3420 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2005-03-22 03:11:07 +00:00
parent a285695ca8
commit 32a42047dc
@@ -426,6 +426,11 @@ public abstract class PuzzleManager extends GameManager
protected void reportPlayerKnockedOut (int pidx)
{
BodyObject user = getPlayer(pidx);
if (user == null) {
// body object can be null for ai players
return;
}
OidList knocky = new OidList(1);
knocky.add(user.getOid());