don't read from ini twice when loading a character's emotions

This commit is contained in:
cidoku 2025-02-21 15:07:04 -03:00
parent 4a40d65c3a
commit 57ec422712

View File

@ -133,6 +133,8 @@ class charselect(QtGui.QWidget):
self.prevpage.hide()
char = self.charlist[ind][0].lower()
if not exists(AOpath+"characters/"+ char):
print char, "doesn't exist"
if exists(AOpath+"characters/"+ char +"/char_icon.png"): # AO2
self.setBtnImage.emit(AOpath+"characters/"+ char +"/char_icon.png", i)
elif exists(AOpath+"misc/demothings/"+ char +"_char_icon.png"): # AO 1.7.5/1.8