aboutsummaryrefslogtreecommitdiff
path: root/game/missile/AlertScript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/missile/AlertScript.cpp')
-rw-r--r--game/missile/AlertScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/missile/AlertScript.cpp b/game/missile/AlertScript.cpp
index 24b4af9..0e6f5c5 100644
--- a/game/missile/AlertScript.cpp
+++ b/game/missile/AlertScript.cpp
@@ -18,7 +18,7 @@ void AlertScript::fixed_update(crepe::duration_t dt) {
auto alert_transforms = this->get_components_by_name<Transform>("missile_alert");
int idx = 0;
- for (int i = 0; i < missile_transforms.size(); i++) {
+ for (int i = 0; i < missile_transforms.size(); ++i) {
const auto & missile_transform = missile_transforms[i].get();
if (this_transform.game_object_id == missile_transform.game_object_id) {
idx = i;