diff --git a/dll/steam_inventory.h b/dll/steam_inventory.h index fcb672b..d30d203 100644 --- a/dll/steam_inventory.h +++ b/dll/steam_inventory.h @@ -45,7 +45,6 @@ class Steam_Inventory : std::vector inventory_requests; -struct Steam_Inventory_Requests *new_inventory_result(const SteamItemInstanceID_t *pInstanceIDs=NULL, uint32 unCountInstanceIDs=0) std::map> items; // Like typedefs using item_iterator = std::map>::iterator; @@ -58,6 +57,7 @@ struct Steam_Inventory_Requests *new_inventory_result(const SteamItemInstanceID_ // Or find a server somewhere to hold the data for us then cache on local settings. bool need_load_definitions = true; +struct Steam_Inventory_Requests* new_inventory_result(const SteamItemInstanceID_t* pInstanceIDs = NULL, uint32 unCountInstanceIDs = 0) { static SteamInventoryResult_t result; ++result; @@ -86,7 +86,7 @@ struct Steam_Inventory_Requests *get_inventory_result(SteamInventoryResult_t res public: -Steam_Inventory(class Settings *settings, class SteamCallResults *callback_results, class SteamCallBacks *callbacks) +Steam_Inventory(class Settings *settings, class SteamCallResults *callback_results, class SteamCallBacks *callbacks): items(read_items_db(Local_Storage::get_program_path() + PATH_SEPARATOR + "steam_items.json")) { this->settings = settings;