Browse Source

[fixed] Bug in calculating editing effect on song

Dank 8 months ago
parent
commit
bc78f64321
1 changed files with 1 additions and 1 deletions
  1. 1 1
      locations/music_onlinemusic.qsrc

+ 1 - 1
locations/music_onlinemusic.qsrc

@@ -667,7 +667,7 @@ if $ARGS[0] = 'calc_edit_effect':
 	!! Since music skill on its own doesn''t generate much value, high time-investment music editing will radically increase the quality of music - but it must be dependent on the original content.
 	!! Good editing alone can''t make a popular musician (or can it... sigh).
 	if ml_onlinesong_editcount[ARGS[1]] ! 0:
-		result = (ml_onlinesong_editingskill[ARGS[1]] * 3) * (ml_onlinesong_editcount[ARGS[1]] + 1) / (ml_onlinesong_editcount[upload_index] + 3)
+		result = (ml_onlinesong_editingskill[ARGS[1]] * 3) * (ml_onlinesong_editcount[ARGS[1]] + 1) / (ml_onlinesong_editcount[ARGS[1]] + 3)
 	else 
 		result = 0
 	end