Fix another bot SQL error

This commit is contained in:
Michael Cook (mackal) 2014-09-30 19:23:02 -04:00
parent 7326a3ea7a
commit cf8363f62e

View File

@ -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)