Do the right thing, not the wrong thing. It's late...

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@694 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Par Winzell
2008-07-31 06:20:32 +00:00
parent 23311ca4f7
commit f3dff81492
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="dist/classes" path="src/java"/>
<classpathentry kind="src" path="src/java"/>
<classpathentry kind="src" path="tests/src/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/nenya"/>
@@ -687,7 +687,8 @@ public class GameManager extends PlaceManager
public BodyObject checkWritePermission (ClientObject client, int playerId)
{
// subclasses can be more restrictive here
return _omgr.getObject(client.getOid());
DObject player = _omgr.getObject(playerId);
return (player instanceof BodyObject) ? (BodyObject) player : null;
}