[6908] Faster setting online=0 at startup and semilar queries.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
balrok 2008-12-15 00:11:12 +03:00 committed by VladimirMangos
parent 35f54d365d
commit a62801aee9
4 changed files with 4 additions and 4 deletions

View file

@ -3137,7 +3137,7 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
}
}while(result->NextRow());
// set "wpguid" column to "empty" - no visual waypoint spawned
WorldDatabase.PExecuteLog("UPDATE creature_movement SET wpguid = '0'");
WorldDatabase.PExecuteLog("UPDATE creature_movement SET wpguid = '0' WHERE wpguid <> '0'");
if( hasError )
{