Browse Source

Fixed script command unitkill crashing the server (fixes #1027)
* Resolves an issue with Mercenary causing the server to crash when killed through the script command unitkill.
* Blame dd67f9d.

aleos89 9 years ago
parent
commit
2a4fc75baa
1 changed files with 5 additions and 4 deletions
  1. 5 4
      src/map/mercenary.c

+ 5 - 4
src/map/mercenary.c

@@ -417,12 +417,13 @@ void mercenary_heal(struct mercenary_data *md, int hp, int sp) {
 }
 }
 
 
 /**
 /**
-* Delete Mercenary
-* @param md Mercenary
-**/
+ * Delete Mercenary
+ * @param md: Mercenary
+ * @return false for status_damage
+ */
 bool mercenary_dead(struct mercenary_data *md) {
 bool mercenary_dead(struct mercenary_data *md) {
 	mercenary_delete(md, 1);
 	mercenary_delete(md, 1);
-	return true;
+	return false;
 }
 }
 
 
 /**
 /**