Skip to content

Commit d558a4c

Browse files
committed
Fix clang warning regarding side-effects in typeid
1 parent 54be31a commit d558a4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Engine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void ashley::Engine::removeAllEntities() {
9999
}
100100

101101
ashley::EntitySystem *ashley::Engine::addSystem(std::unique_ptr<EntitySystem> &&system) {
102-
const auto systemIndex = std::type_index(typeid(*system));
102+
const auto systemIndex = std::type_index(typeid(typename std::unique_ptr<EntitySystem>::element_type));
103103

104104
auto it = systemsByClass.find(systemIndex);
105105

0 commit comments

Comments
 (0)