Browse Source

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1021 54d463be-8e91-2dee-dedb-b68131a5f0ec

(no author) 20 năm trước cách đây
mục cha
commit
cdd4c06885
2 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 2 0
      Changelog.txt
  2. 2 1
      src/map/skill.c

+ 2 - 0
Changelog.txt

@@ -1,5 +1,7 @@
 Date	Added
 02/02
+        * Removed nullpo check in skillnotok() -- otherwise it will display fail 
+          messages for monster skills [celest]
         * Added crash check for Ice Wall [celest]
         * Added some optimisations by Ilpalazzo-sama [celest]
           - reduce mob_data->size variable to 1 bytes

+ 2 - 1
src/map/skill.c

@@ -811,7 +811,8 @@ int skill_count_target(struct block_list *bl, va_list ap );
 
 // [MouseJstr] - skill ok to cast? and when?
 int skillnotok(int skillid, struct map_session_data *sd) {
-	nullpo_retr (1, sd);
+	if (sd == 0)
+		return 0;
 
 	if (!(skillid >= 10000 && skillid < 10015))
 		if ((skillid > MAX_SKILL) || (skillid < 0))