diff --git a/src/game/behaviors/water_ring.inc.c b/src/game/behaviors/water_ring.inc.c index f36bdf70..d0db20f2 100644 --- a/src/game/behaviors/water_ring.inc.c +++ b/src/game/behaviors/water_ring.inc.c @@ -170,10 +170,11 @@ void water_ring_spawner_act_inactive(void) { waterRing = spawn_object(o, MODEL_WATER_RING, bhvJetStreamWaterRing); if (waterRing != NULL) { waterRing->oWaterRingIndex = currentObj->oWaterRingMgrNextRingIndex; + currentObj->oWaterRingMgrNextRingIndex++; + if (currentObj->oWaterRingMgrNextRingIndex >= 10001) { + currentObj->oWaterRingMgrNextRingIndex = 0; + } } - currentObj->oWaterRingMgrNextRingIndex++; - if (currentObj->oWaterRingMgrNextRingIndex >= 10001) - currentObj->oWaterRingMgrNextRingIndex = 0; } }