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/wall-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/wall-cell.cpp')
| -rw-r--r-- | loader/wall-cell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/wall-cell.cpp b/loader/wall-cell.cpp index 92034659..4e12f0be 100644 --- a/loader/wall-cell.cpp +++ b/loader/wall-cell.cpp @@ -24,7 +24,7 @@ vector_wrapper<const wall_cell> wall_cell::load_atlases_from_json() { char buf[fm_FILENAME_MAX]; auto s = loader.make_atlas_path(buf, loader.WALL_TILESET_PATH, "walls.json"_s); - return { json_helper::from_json<std::vector<wall_cell>>(s) }; + return {json_helper::from_json<std::vector<wall_cell>>(s)}; } } // namespace floormat |
