From 2a4c956a552300813e6792925aeae40b5644eba2 Mon Sep 17 00:00:00 2001 From: Max-001 Date: Wed, 8 Jan 2025 09:11:34 +0100 Subject: Make format --- game/coins/CoinScript.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/game/coins/CoinScript.cpp b/game/coins/CoinScript.cpp index 54ef760..90150b6 100644 --- a/game/coins/CoinScript.cpp +++ b/game/coins/CoinScript.cpp @@ -13,7 +13,11 @@ using namespace std; bool CoinScript::on_collision(const CollisionEvent & collisionData) { if (collisionData.info.other.metadata.tag != "coin") return false; - if(!this->get_components_by_name(collisionData.info.other.metadata.name).front().get().active) return false; + if (!this->get_components_by_name(collisionData.info.other.metadata.name) + .front() + .get() + .active) + return false; this->get_components_by_name(collisionData.info.other.metadata.name) .front() .get() -- cgit v1.2.3