diff options
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)); } } |