mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Fix hardcoded database name
This commit is contained in:
parent
8500dd82b5
commit
bb5ebb62d0
@ -1810,7 +1810,7 @@ Player* PlayerbotAI::GetPlayer(ObjectGuid guid)
|
||||
|
||||
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) {
|
||||
Field* fields = results->Fetch();
|
||||
return fields[0].Get<uint32>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user