mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-08 01:13:35 +00:00
Fix another bot SQL error
This commit is contained in:
1 parent
7326a3ea7a
commit
cf8363f62e
1 file changed
+1
-1
+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);
|
||||
auto results = database.QueryDatabase(query);
|
||||
if(results.Success())
|
||||
if(!results.Success())
|
||||
return 0;
|
||||
|
||||
if(results.RowCount() != 1)
|
||||
|
||||
Reference in new issue
Block a user