changeset 153:d8e32b4adc5c

Fix for pychan - it used getIndex.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 11 Oct 2008 14:03:01 +0000
parents 679ed3e15513
children d29593182f40
files engine/extensions/pychan/manager.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/engine/extensions/pychan/manager.py	Sat Oct 11 12:55:41 2008 +0000
+++ b/engine/extensions/pychan/manager.py	Sat Oct 11 14:03:01 2008 +0000
@@ -125,7 +125,8 @@
 		return style_copy
 
 	def loadImage(self,filename):
-		return fife.GuiImage(self.engine.imagePool.getIndex(filename),self.engine.imagePool)
+		index = self.engine.imagePool.addResourceFromFile(filename)
+		return fife.GuiImage(index,self.engine.imagePool)
 
 	def defaultWidgetAction(self,event):
 		if self.debug: