diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-11 04:07:58 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-11 04:07:58 +0100 |
commit | be5ca3208891a8d45cbb7f9c25905f46332572a0 (patch) | |
tree | 04d89404a2aecb26f0dc2299bffdfba4f5eb8df3 /loader/atlas.cpp | |
parent | eaa6c76bd92e292ac59dcfa0a7aa70cd1e2f50fb (diff) |
w
Diffstat (limited to 'loader/atlas.cpp')
-rw-r--r-- | loader/atlas.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/loader/atlas.cpp b/loader/atlas.cpp index de1d8e15..c32ae345 100644 --- a/loader/atlas.cpp +++ b/loader/atlas.cpp @@ -42,12 +42,11 @@ bool loader_::check_atlas_name(StringView str) noexcept namespace floormat::loader_detail { -std::shared_ptr<tile_atlas> loader_impl::tile_atlas(StringView name, Vector2ub size, Optional<pass_mode> pass) noexcept(false) +std::shared_ptr<tile_atlas> loader_impl::tile_atlas(StringView name, Vector2ub size, pass_mode pass) noexcept(false) { if (auto it = tile_atlas_map.find(name); it != tile_atlas_map.end()) { - if (pass) - fm_assert(it->second->pass_mode() == pass); + fm_assert(it->second->pass_mode() == pass); return it->second; } |