mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2026-03-28 23:50:02 +00:00
Make sure a vendor is actually selling the item a player wants to buy
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user