Merge pull request #317 from noisiver/fix-database

Fix hardcoded database name
This commit is contained in:
Yunfan Li
2024-07-10 18:11:33 +08:00
committed by GitHub

View File

@@ -1810,7 +1810,7 @@ Player* PlayerbotAI::GetPlayer(ObjectGuid guid)
uint32 GetCreatureIdForCreatureTemplateId(uint32 creatureTemplateId) uint32 GetCreatureIdForCreatureTemplateId(uint32 creatureTemplateId)
{ {
QueryResult results = WorldDatabase.Query("SELECT guid FROM `acore_world`.`creature` WHERE id1 = {} LIMIT 1;", creatureTemplateId); QueryResult results = WorldDatabase.Query("SELECT guid FROM `creature` WHERE id1 = {} LIMIT 1;", creatureTemplateId);
if (results) { if (results) {
Field* fields = results->Fetch(); Field* fields = results->Fetch();
return fields[0].Get<uint32>(); return fields[0].Get<uint32>();