Properly set wave ifno

This commit is contained in:
2024-02-13 12:02:35 +01:00
parent 4c8c59fd10
commit dc140027ed

View File

@@ -47,7 +47,7 @@ WaveInfo getWaveInfo(const EnemyWaves *waves, i32 idx) {
} else {
waveData = waves->waves[idx];
waveData.timeBeforeStart = waves->waves[NUM_WAVES - 1].timeBeforeStart;
waveData.timeBeforeStart = waves->waves[idx].timeBeforeStart;
}
WaveInfo info = {