ReloadFromSongDir: fix error in Group offset application logic
When the group can't be found, m_SongTiming is updated instead of mNewSteps[id]->m_Timing. This seems to be an unintentional error, because the non-failure case and surrounding code properly reference mNewSteps[id]->m_Timing.
This commit is contained in:
+1
-1
@@ -519,7 +519,7 @@ bool Song::ReloadFromSongDir( RString sDir )
|
||||
}
|
||||
else
|
||||
{
|
||||
m_SongTiming.m_fBeat0GroupOffsetInSeconds = PREFSMAN->m_DefaultSyncOffset == SyncOffset_NULL ? 0 : -0.009;
|
||||
mNewSteps[id]->m_Timing.m_fBeat0GroupOffsetInSeconds = PREFSMAN->m_DefaultSyncOffset == SyncOffset_NULL ? 0 : -0.009;
|
||||
LOG->Warn("Song %s has no group, using default sync offset.", m_sMainTitle.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user