diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-10 05:39:10 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-10 05:39:10 +0100 |
commit | 972275ca9cfbbbe23039c0cecb359420358d8ebf (patch) | |
tree | 77975d0349250c68ecbaf5f094cafee894a10773 /loader/ground-cell.cpp | |
parent | 25fd6d8eb0ec170ef6fabfb3097fe5f70e42edb8 (diff) |
loader: don't require atlas's Cell pointer to remain constant
The make_cell() thing hasn't been tested yet.
Diffstat (limited to 'loader/ground-cell.cpp')
-rw-r--r-- | loader/ground-cell.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/loader/ground-cell.cpp b/loader/ground-cell.cpp index 8cc1e31d..f8373d76 100644 --- a/loader/ground-cell.cpp +++ b/loader/ground-cell.cpp @@ -11,8 +11,7 @@ vector_wrapper<const ground_cell> ground_cell::load_atlases_from_json() { char buf[fm_FILENAME_MAX]; auto s = loader.make_atlas_path(buf, loader.GROUND_TILESET_PATH, "ground.json"_s); - auto cells = json_helper::from_json<std::vector<ground_cell>>(s); - return {cells}; + return {json_helper::from_json<std::vector<ground_cell>>(s)}; } } // namespace floormat |