aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/crcombat.cc2
-rw-r--r--src/info.cc3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/crcombat.cc b/src/crcombat.cc
index c50f028..98d689a 100644
--- a/src/crcombat.cc
+++ b/src/crcombat.cc
@@ -919,7 +919,7 @@ void TCombat::DistributeExperiencePoints(uint32 Exp){
int MasterLevel = Master->Skills[SKILL_LEVEL]->Get();
int AttackerLevel = Attacker->Skills[SKILL_LEVEL]->Get();
int MaxLevel = (MasterLevel * 11) / 10;
- if(AttackerLevel <= MaxLevel){
+ if(AttackerLevel >= MaxLevel){
continue;
}
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;
}
}