This is a fork of Zandronum Beta for Mac Os (Silicon and Intel)
修訂 | 73a1c6a99b8d9f9354ce83230ee288b4824dac55 (tree) |
---|---|
時間 | 2022-12-17 00:42:31 |
作者 | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Replaced C-style char arrays in the team CCMD's callback function with FString.
@@ -1945,10 +1945,10 @@ | ||
1945 | 1945 | // with the changeteam command. |
1946 | 1946 | if ( argv.argc( ) > 1 ) |
1947 | 1947 | { |
1948 | - char szCommand[64]; | |
1948 | + FString command; | |
1949 | 1949 | |
1950 | - sprintf( szCommand, "changeteam \"%s\"", argv[1] ); | |
1951 | - AddCommandString( szCommand ); | |
1950 | + command.Format( "changeteam \"%s\"", argv[1] ); | |
1951 | + C_DoCommand( command.GetChars( )); | |
1952 | 1952 | } |
1953 | 1953 | // If they didn't, just display which team they're on. |
1954 | 1954 | else |