old resource loading was buggy?

This commit is contained in:
Brian Matzon 2003-06-17 21:24:48 +00:00
parent fa26d83aae
commit 2305247ac1
2 changed files with 3 additions and 5 deletions

View file

@ -91,7 +91,7 @@ public class WaveData {
try {
return create(
AudioSystem.getAudioInputStream(
new BufferedInputStream(ClassLoader.getSystemClassLoader().getResourceAsStream(filepath))));
new BufferedInputStream(WaveData.class.getClassLoader().getResourceAsStream(filepath))));
} catch (Exception e) {
e.printStackTrace();
return null;