fix possible crashes while parsing hitsounds (see itdelatrisu/opsu#422)
This commit is contained in:
parent
114f37841f
commit
54ce595c7f
|
@ -240,7 +240,7 @@ public class HitObject {
|
|||
String[] edgeHitSoundTokens = tokens[8].split("\\|");
|
||||
this.edgeHitSound = new byte[edgeHitSoundTokens.length];
|
||||
for (int j = 0; j < edgeHitSoundTokens.length; j++)
|
||||
edgeHitSound[j] = Byte.parseByte(edgeHitSoundTokens[j]);
|
||||
edgeHitSound[j] = (byte) Short.parseShort(edgeHitSoundTokens[j]);
|
||||
}
|
||||
if (tokens.length > 9) {
|
||||
String[] edgeAdditionTokens = tokens[9].split("\\|");
|
||||
|
|
Loading…
Reference in New Issue
Block a user