From 5c81a2d5e8d3d6f1552627f5bc7e37acb97dfdda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Sat, 26 Mar 2022 17:26:18 -0600 Subject: [PATCH] Fix SQL query in Guild kill advertisement --- src/GuildTaskMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GuildTaskMgr.cpp b/src/GuildTaskMgr.cpp index 4decf265..4ec411c1 100644 --- a/src/GuildTaskMgr.cpp +++ b/src/GuildTaskMgr.cpp @@ -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;