mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Merge pull request #317 from noisiver/fix-database
Fix hardcoded database name
This commit is contained in:
@@ -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>();
|
||||||
|
|||||||
Reference in New Issue
Block a user