From 21aae9eec528708933c3ab4f99ef8b9bed2a8ca7 Mon Sep 17 00:00:00 2001 From: Kartselyanski Date: Wed, 13 Jun 2018 01:46:41 +0300 Subject: [PATCH] Should be out of the check. --- src/server/game/Maps/TransportMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/game/Maps/TransportMgr.cpp b/src/server/game/Maps/TransportMgr.cpp index 0a297e365..5746676ba 100644 --- a/src/server/game/Maps/TransportMgr.cpp +++ b/src/server/game/Maps/TransportMgr.cpp @@ -403,11 +403,11 @@ void TransportMgr::SpawnContinentTransports() if (_transportTemplates.empty()) return; + uint32 oldMSTime = getMSTime(); + uint32 count = 0; if (sWorld->getBoolConfig(CONFIG_ENABLE_CONTINENT_TRANSPORT)) { - uint32 oldMSTime = getMSTime(); QueryResult result = WorldDatabase.Query("SELECT guid, entry FROM transports"); - uint32 count = 0; if (result) { do