diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-02 16:12:20 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-02 18:58:28 +0100 |
commit | 99e2a55cec3b055b2eb9f64a534049e0d9bb22ab (patch) | |
tree | 0f903b1168887f16005628be2804c7391665c6da /loader/json.cpp | |
parent | db50c7a6a38eff251a14d57dcb9ae551ffe3a1d6 (diff) |
loader: check atlas name harder
1. don't duplicate checking logic
2. check for ascii null characters in names
3. allow space characters
Diffstat (limited to 'loader/json.cpp')
-rw-r--r-- | loader/json.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/loader/json.cpp b/loader/json.cpp index 77da5905..dbe21d50 100644 --- a/loader/json.cpp +++ b/loader/json.cpp @@ -39,6 +39,7 @@ const std::vector<serialized_scenery>& loader_impl::sceneries() const scenery_proto& loader_impl::scenery(StringView name) noexcept(false) { + fm_soft_assert(check_atlas_name(name)); if (sceneries_array.empty()) get_scenery_list(); auto it = sceneries_map.find(name); |