don't read from ini twice when loading a character's emotions
This commit is contained in:
parent
4a40d65c3a
commit
57ec422712
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user