From 333650c3d58f389d48751696539e123018016556 Mon Sep 17 00:00:00 2001 From: collett Date: Sat, 8 Feb 2020 00:43:49 +0900 Subject: [PATCH] Fix #632. --- src/scripts/common/aethernet/Aetheryte.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/common/aethernet/Aetheryte.cpp b/src/scripts/common/aethernet/Aetheryte.cpp index cc5afb92..d7267d20 100644 --- a/src/scripts/common/aethernet/Aetheryte.cpp +++ b/src/scripts/common/aethernet/Aetheryte.cpp @@ -33,7 +33,7 @@ public: { player.playScene( eventId, 2, 0, [this]( Entity::Player& player, const Event::SceneResult& result ) { - if( result.param1 == 256 ) + if( result.param1 == 256 && result.param2 != 0 ) { player.teleport( result.param2, 2 ); } @@ -69,7 +69,7 @@ public: } else if( result.param1 == 512 ) // aethernet access { - if( result.param2 == 4 ) + if( result.param2 == 4 && result.param3 != 0 ) { player.teleport( result.param3, 2 ); }