diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index 391e64b55..e82a1e1a6 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -4560,15 +4560,15 @@ void Client::Handle_OP_ClickDoor(const EQApplicationPacket *app) // don't spam scripts with client controlled doors if not within distance if (within_distance) { + int quest_return = 0; if (parse->PlayerHasQuestSub(EVENT_CLICK_DOOR)) { std::vector args = {currentdoor}; - int quest_return = 0; quest_return = parse->EventPlayer(EVENT_CLICK_DOOR, this, std::to_string(cd->doorid), 0, &args); + } - if (quest_return == 0) { - currentdoor->HandleClick(this, 0); - } + if (quest_return == 0) { + currentdoor->HandleClick(this, 0); } } else {