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:
Michael Bayne
2007-06-22 22:08:41 +00:00
parent fbfed05247
commit af9a9b4895
@@ -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 + "].");