mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-28 09:17:15 +00:00
Fix another bot SQL error
This commit is contained in:
+1
-1
@@ -4266,7 +4266,7 @@ uint32 Bot::GetBotItemBySlot(uint32 slotID) {
|
|||||||
|
|
||||||
std::string query = StringFormat("SELECT itemid FROM botinventory WHERE botid=%i AND slotid = %i", GetBotID(), slotID);
|
std::string query = StringFormat("SELECT itemid FROM botinventory WHERE botid=%i AND slotid = %i", GetBotID(), slotID);
|
||||||
auto results = database.QueryDatabase(query);
|
auto results = database.QueryDatabase(query);
|
||||||
if(results.Success())
|
if(!results.Success())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if(results.RowCount() != 1)
|
if(results.RowCount() != 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user