diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-19 00:03:12 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-19 00:03:46 +0100 |
commit | f3f99d56ad6cd66e74e6958d46a12cc56f584984 (patch) | |
tree | 4206d13f3091f822d7ee3b34ced82163ed7f50cf /src/world.hpp | |
parent | 4d9a82b720c8ce74b94f43f72ddd819ef21abbdf (diff) |
move some deserialize path's asserts to soft asserts
Diffstat (limited to 'src/world.hpp')
-rw-r--r-- | src/world.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/world.hpp b/src/world.hpp index 589bbd67..5d9b8eb6 100644 --- a/src/world.hpp +++ b/src/world.hpp @@ -4,6 +4,7 @@ #include "chunk.hpp" #include "global-coords.hpp" #include "entity-type.hpp" +#include "compat/exception.hpp" #include <unordered_map> #include <memory> @@ -109,7 +110,7 @@ std::shared_ptr<T> world::find_entity(object_id id) return ptr; else { - fm_assert(ptr->type == entity_type_<T>::value); + fm_soft_assert(ptr->type == entity_type_<T>::value); return std::static_pointer_cast<T>(std::move(ptr)); } } |