mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-27 14:08:39 +01:00
atomic_bool is not copy_constructible
This commit is contained in:
parent
e2fbada4c1
commit
98c556d6dc
1 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,7 @@ class Steam_Inventory :
|
|||
// Or find a server somewhere to hold the data for us then cache on local settings.
|
||||
bool need_load_definitions = true;
|
||||
|
||||
std::atomic_bool items_loaded = false;
|
||||
std::atomic_bool items_loaded;
|
||||
|
||||
struct Steam_Inventory_Requests* new_inventory_result(const SteamItemInstanceID_t* pInstanceIDs = NULL, uint32 unCountInstanceIDs = 0)
|
||||
{
|
||||
|
@ -91,6 +91,7 @@ public:
|
|||
|
||||
Steam_Inventory(class Settings *settings, class SteamCallResults *callback_results, class SteamCallBacks *callbacks)
|
||||
{
|
||||
items_loaded = false;
|
||||
std::thread items_load_thread(read_items_db, Local_Storage::get_game_settings_path() + "items.json", &items, &items_loaded);
|
||||
items_load_thread.detach();
|
||||
|
||||
|
|
Loading…
Reference in a new issue