mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
parent
eab8abef67
commit
16ab5f9e02
@ -51,8 +51,7 @@ int client_main(int argc, char * argv[])
|
||||
[NSNotificationCenter.defaultCenter removeObserver:startGameObserver];
|
||||
startGameObserver = nil;
|
||||
|
||||
__auto_type args = note.userInfo[@"args"];
|
||||
int cnt = [[args] count];
|
||||
int cnt = note.userInfo[@"args"].count;
|
||||
char * newArgv[cnt];
|
||||
[args enumerateObjectsUsingBlock:^(NSString * obj, NSUInteger idx, BOOL * stop) {
|
||||
newArgv[idx] = obj.UTF8String;
|
||||
|
Loading…
Reference in New Issue
Block a user