diff --git a/src/Course.cpp b/src/Course.cpp index dfda217e03..f74d8d2090 100644 --- a/src/Course.cpp +++ b/src/Course.cpp @@ -722,7 +722,7 @@ bool Course::HasTimedMods() const { for( unsigned s=0; s < e->attacks.size(); s++ ) { - Attack &attack = e->attacks[s]; + const Attack attack = e->attacks[s]; if(!attack.bGlobal) return true; }