Fixed reading ints.

This commit is contained in:
NathanSweet 2013-09-27 14:03:07 +02:00
parent a7913e35ba
commit 58545382fc
2 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ namespace Spine {
private int GetInt (Dictionary<String, Object> map, String name, int defaultValue) { private int GetInt (Dictionary<String, Object> map, String name, int defaultValue) {
if (!map.ContainsKey(name)) if (!map.ContainsKey(name))
return defaultValue; return defaultValue;
return (int)map[name]; return (int)(float)map[name];
} }
private bool GetBoolean (Dictionary<String, Object> map, String name, bool defaultValue) { private bool GetBoolean (Dictionary<String, Object> map, String name, bool defaultValue) {

View File

@ -119,7 +119,7 @@
} }
}, },
"events": { "events": {
"behind": {}, "behind": { "int": 4 },
"headAttach": {}, "headAttach": {},
"headPop": {} "headPop": {}
}, },