# HG changeset patch # User Adam Kaminski # Date 1616450727 14400 # Mon Mar 22 18:05:27 2021 -0400 # Node ID 342153688b6a3df69e59c4764b01b1bbdbac7034 # Parent ea2f3cf2ebc6b7bcad0f328a9d56577ad80f07e6 Fixed a GCC compile error. diff -r ea2f3cf2ebc6 -r 342153688b6a src/chat.cpp --- a/src/chat.cpp Sun Mar 21 22:18:33 2021 +0100 +++ b/src/chat.cpp Mon Mar 22 18:05:27 2021 -0400 @@ -165,7 +165,7 @@ { Printf( "cl_chatprefix cannot be greater than 16 characters in length!\n" ); - FString truncatedPrefix = self; + FString truncatedPrefix = self.GetGenericRep( CVAR_String ).String; self = truncatedPrefix.Left( 16 ); } } @@ -178,7 +178,7 @@ { Printf( "cl_chatsuffix cannot be greater than 16 characters in length!\n" ); - FString truncatedSuffix = self; + FString truncatedSuffix = self.GetGenericRep( CVAR_String ).String; self = truncatedSuffix.Left( 16 ); } }