Make sure a vendor is actually selling the item a player wants to buy

This commit is contained in:
gsemaj
2021-06-20 10:15:02 -04:00
parent bb12a60e04
commit 0accd1f345
2 changed files with 26 additions and 4 deletions

View File

@@ -7,7 +7,12 @@
#include "PlayerManager.hpp"
struct VendorListing {
int sort, type, iID;
int sort, type, id;
// when validating a listing, we don't really care about the sorting index
bool operator==(const VendorListing& other) const {
return type == other.type && id == other.id;
}
};
namespace Vendors {