Use the right portal id.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@323 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -190,8 +190,8 @@ public class SpotSceneManager extends SceneManager
|
||||
{
|
||||
Portal from = _enterers.remove(body.getOid());
|
||||
Portal entry;
|
||||
if (from != null && from.portalId != -1) {
|
||||
entry = _sscene.getPortal(from.portalId);
|
||||
if (from != null && from.targetPortalId != -1) {
|
||||
entry = _sscene.getPortal(from.targetPortalId);
|
||||
if (entry == null) {
|
||||
Log.warning("Body mapped at invalid portal [where=" + where() +
|
||||
", who=" + body.who() + ", from=" + from + "].");
|
||||
|
||||
Reference in New Issue
Block a user