Fix SQL query in Guild kill advertisement

This commit is contained in:
郑佩茹
2022-03-26 17:26:18 -06:00
parent b3e3a13f56
commit 5c81a2d5e8

View File

@@ -361,7 +361,7 @@ bool GuildTaskMgr::SendKillAdvertisement(CharacterDatabaseTransaction& trans, ui
if (!proto)
return false;
QueryResult result = WorldDatabase.Query("SELECT map, position_x, position_y, position_z FROM creature WHERE id = {}", creatureId);
QueryResult result = WorldDatabase.Query("SELECT map, position_x, position_y, position_z FROM creature WHERE id1 = {}", creatureId);
if (!result)
return false;