Skip to content

Commit 54511a4

Browse files
committed
Unload comboburst-x textures if it is not available
1 parent 420e756 commit 54511a4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ru/nsu/ccfit/zuev/osu/ResourceManager.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,13 +300,15 @@ public void loadCustomSkin(String folder) {
300300

301301
for (int i = 0; i < 10; i++) {
302302
String textureName = "comboburst-" + i;
303-
if (availableFiles.containsKey(textureName)) { // No idea if this is still needed
303+
if (availableFiles.containsKey(textureName)) {
304304
File file = availableFiles.get(textureName);
305305
if (file != null) {
306306
loadTexture(textureName, file.getPath(), true);
307307
} else {
308308
unloadTexture(textureName);
309309
}
310+
} else {
311+
unloadTexture(textureName);
310312
}
311313
}
312314

0 commit comments

Comments
 (0)