Skip to content

Commit

Permalink
Minor fix for previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewol committed Oct 15, 2017
1 parent c1ad031 commit d777a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Beatmap/src/BeatmapFromKSH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ bool Beatmap::m_ProcessKShootMap(BinaryStream& input, bool metadataOnly)
{
// Use settings method of setting effects+params (1.60)
state->effectType = currentButtonEffectTypes[i - 4];
if (currentButtonEffectParams[i - 4] != -1)
if (currentButtonEffectParams[(i - 4) * maxEffectParamsPerButtons] != -1)
memcpy(state->effectParams, currentButtonEffectParams + (i - 4) * maxEffectParamsPerButtons,
sizeof(state->effectParams));
else
Expand Down

0 comments on commit d777a48

Please sign in to comment.