shithub: pokecrystal

Download patch

ref: 62596e14c6ab288f09be9eee04f2efd7e11dfa5a
parent: 682fc3ee5c816c60f6b4f34182093e66b77c6584
author: yenatch <yenatch@gmail.com>
date: Mon Aug 31 16:38:03 EDT 2015

Fix reading directory names in gfx.py.

--- a/gfx.py
+++ b/gfx.py
@@ -42,7 +42,7 @@
 	pokemon_name = ''
 
 	if 'gfx/pics/' in filedir:
-		pokemon_name = filedir.split('/')[3]
+		pokemon_name = filedir.split('/')[-1]
 		if pokemon_name.startswith('unown_'):
 			index = filedir.find(pokemon_name)
 			if index != -1: