Преглед изворни кода

Resolved a compile error for CentOS (fixes #1190)
* Send a 0 instead of NULL to the va_list when freeing item groups.

aleos89 пре 9 година
родитељ
комит
ca049a66f4
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/map/itemdb.c

+ 1 - 1
src/map/itemdb.c

@@ -615,7 +615,7 @@ static void itemdb_read_itemgroup_sub(const char* filename, bool silent)
 
 		// Remove from DB
 		if (strcmpi(str[1], "clear") == 0 && itemdb_group->remove(itemdb_group, db_ui2key(group_id), &data)) {
-			itemdb_group_free(db_ui2key(group_id), &data, NULL);
+			itemdb_group_free(db_ui2key(group_id), &data, 0);
 			ShowNotice("Item Group '%s' has been cleared.\n", str[0]);
 			continue;
 		}