WorldRegions memory management update

This commit is contained in:
MihailRis
2023-12-27 11:44:19 +03:00
parent 5d4e67fdb1
commit 69a17c25ea
2 changed files with 5 additions and 8 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ public:
uint32_t* getSizes() const;
};
typedef std::unordered_map<glm::ivec2, WorldRegion*> regionsmap;
typedef std::unordered_map<glm::ivec2, std::unique_ptr<WorldRegion>> regionsmap;
class WorldFiles {
std::unordered_map<glm::ivec3, std::unique_ptr<files::rafile>> openRegFiles;