Explorar el Código

Fixes atcommand killmonster2 bypass

* Atcommand killmonster2 would make monsters drop items because of a case insensitive check.
Thanks to @Mamb0w!
Mambow hace 4 años
padre
commit
cbaef6d9a5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/map/atcommand.cpp

+ 1 - 1
src/map/atcommand.cpp

@@ -2283,7 +2283,7 @@ ACMD_FUNC(killmonster)
 
 	parent_cmd = atcommand_alias_db.checkAlias(command+1);
 
-	drop_flag = strcmp(parent_cmd, "killmonster2");
+	drop_flag = strcmpi(parent_cmd, "killmonster2");
 
 	map_foreachinmap(atkillmonster_sub, map_id, BL_MOB, -drop_flag);