Fix sprite->pos data race

This commit is contained in:
John Firebaugh
2014-07-21 13:43:59 -07:00
parent 4a110ff17e
commit fb151b3fbe
2 changed files with 11 additions and 8 deletions

View File

@@ -55,7 +55,8 @@ private:
std::string url;
std::string body;
std::string image;
std::atomic<bool> loaded;
std::atomic<bool> loadedImage;
std::atomic<bool> loadedJSON;
std::unordered_map<std::string, SpritePosition> pos;
const SpritePosition empty;
};