Commit 8d405eed authored by Tim Scheiber's avatar Tim Scheiber
Browse files

fix initialisation

parent 3fa6fd82
Pipeline #3351 passed with stage
in 4 minutes and 17 seconds
......@@ -111,7 +111,7 @@ namespace phase_shifter::gameplay {
for(auto&& [entity, shooting, transform] :
_entity_manager.list<Entity_facet, Shooting_comp, components::Transform_comp>()) {
auto my_position = transform.position;
glm::vec3 closest_target_pos;
glm::vec3 closest_target_pos(0.f);
float closest_dist = 999999999.f;
for(auto&& [target, target_comp, target_transform] :
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment