Core. Fix a mishap in the ObjectMgr after the recent changes

This commit is contained in:
click
2012-03-27 23:12:01 +02:00
parent 729f419af1
commit ef3835655c

View File

@@ -3212,7 +3212,7 @@ void ObjectMgr::LoadPlayerInfo()
uint32 oldMSTime = getMSTime();
std::string tableName = sWorld->getBoolConfig(CONFIG_START_ALL_SPELLS) ? "playercreateinfo_spell_custom" : "playercreateinfo_spell";
QueryResult result = WorldDatabase.PQuery("SELECT race, class, Spell FROM %s", tableName);
QueryResult result = WorldDatabase.PQuery("SELECT race, class, Spell FROM %s", tableName.c_str());
if (!result)
{