mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-25 00:28:20 -05:00
Merge pull request #431 from yueyuzhao/issue/429-ios-import-project-with-text
iOS: fix app crash when importing project with text
This commit is contained in:
commit
5e79e777da
1 changed files with 4 additions and 1 deletions
|
@ -313,7 +313,10 @@ NSMutableDictionary *soundtimers;
|
|||
NSDictionary *page = [json valueForKey:name];
|
||||
for (NSString *spriteName in [page valueForKey:@"sprites"]) {
|
||||
NSDictionary *sprite = [page valueForKey:spriteName];
|
||||
[sprites setValue:sprite forKey:[sprite valueForKey:@"md5"]];
|
||||
NSString *md5 = [sprite valueForKey:@"md5"];
|
||||
if (md5 != nil) {
|
||||
[sprites setValue:sprite forKey:md5];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue