Revision | 5888ff02905b8d1a003d457b871d8d154363443d (tree) |
---|---|
Time | 2019-03-25 05:43:01 |
Author | Benjamin Berkels <torr.samaho@quan...> |
Commiter | Benjamin Berkels |
fixed a compiler dependent compile problem
@@ -6438,8 +6438,8 @@ | ||
6438 | 6438 | if ( sv_cheats ) |
6439 | 6439 | { |
6440 | 6440 | PClassActor *pClass = PClass::FindActor(pszMorphClass); |
6441 | - const char *msg = pClass->IsKindOf(RUNTIME_CLASS(PClassPlayerPawn)) ? cht_Morph (players + g_lCurrentClient, static_cast<PClassPlayerPawn *>(pClass), false) : '\0'; | |
6442 | - FString messageString = *msg != '\0' ? msg : "Morph failed."; | |
6441 | + const char *msg = pClass->IsKindOf(RUNTIME_CLASS(PClassPlayerPawn)) ? cht_Morph (players + g_lCurrentClient, static_cast<PClassPlayerPawn *>(pClass), false) : nullptr; | |
6442 | + FString messageString = ( ( msg != nullptr ) && ( *msg != '\0' ) ) ? msg : "Morph failed."; | |
6443 | 6443 | SERVER_PrintfPlayer( g_lCurrentClient, "%s", messageString.GetChars() ); |
6444 | 6444 | } |
6445 | 6445 | // If not, boot their ass! |