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:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user