Revert "Attempt to fix ios build"

This reverts commit eab8abef67.
This commit is contained in:
nordsoft committed 2022-11-10 05:14:19 +04:00
1 parent eab8abef67
commit 16ab5f9e02
1 file changed
+1 -2
+1 -2
View File
@@ -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;