mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Merge pull request #317 from noisiver/fix-database
Fix hardcoded database name
This commit is contained in:
commit
51d3b0eba6
@ -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