TrinityCore/TrinityCore — Issue #5299: [Console output] Displays wrong table during 'load player corpses' + fix
Author: MrSmite
Created: 2012-02-18 01:55:32+00:00
State: open

When loading player corpses the output is:

Loaded 0 corpses. DB table `pet_name_generation` is empty.

I checked the prepared statement and it is reading from the correct statement, this is simply a typo in the console output. Here is the patch:

From ed2d220094df4c23b35cbe60724772088463c21f Mon Sep 17 00:00:00 2001
From: MrSmite
Date: Fri, 17 Feb 2012 20:54:43 -0500
Subject: [PATCH] Fix typo in console output for LoadCorpses()

---
src/server/game/Globals/ObjectMgr.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index 2feb2ed..e93bd20 100755
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -6701,7 +6701,7 @@ void ObjectMgr::LoadCorpses()
PreparedQueryResult result = CharacterDatabase.Query(CharacterDatabase.GetPreparedStatement(CHAR_SEL_CORPSES));
if (!result)
{
- sLog->outString(">> Loaded 0 corpses. DB table `pet_name_generation` is empty.");
+ sLog->outString(">> Loaded 0 corpses. DB table `corpse` is empty.");
sLog->outString();
return;
}
--
1.7.3.1.msysgit.0