From eeddc2b65af76b45001768133ed14d9ab94583b7 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Tue, 6 Jan 2026 06:17:27 -0300 Subject: fix condition for PVP_ENFORCED exp distribution (#50) --- src/info.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/info.cc') diff --git a/src/info.cc b/src/info.cc index 939a211..ac467a9 100644 --- a/src/info.cc +++ b/src/info.cc @@ -1366,7 +1366,7 @@ bool CheckBanishmentRight(uint32 CharacterID, int Reason, int Action){ } const char *GetBanishmentReason(int Reason){ - const char *Result; + const char *Result = ""; switch(Reason){ case 0: Result = "NAME_INSULTING"; break; case 1: Result = "NAME_SENTENCE"; break; @@ -1402,7 +1402,6 @@ const char *GetBanishmentReason(int Reason){ case 31: Result = "INVALID_PAYMENT"; break; default:{ error("GetBanishmentReason: Ungültiger Verbannungsgrund %d.\n", Reason); - Result = ""; break; } } -- cgit v1.2.3