瀏覽代碼

Resolved compile errors
* Follow up to 1408eef.

aleos89 9 年之前
父節點
當前提交
1cd648b1af
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/map/instance.h

+ 2 - 2
src/map/instance.h

@@ -10,7 +10,7 @@
 struct block_list;
 
 #define MAX_INSTANCE_DATA		300	// Essentially how many instances we can create, but instance creation is primarily decided by MAX_MAP_PER_SERVER
-#define MAX_MAP_PER_INSTANCE	UINT8_MAX	// Max number of maps per instance (Enter map is counted as one) - Supports up to 255 maps
+#define MAX_MAP_PER_INSTANCE	255	// Max number of maps per instance (Enter map is counted as one) - Supports up to 255 maps
 
 #define INSTANCE_NAME_LENGTH (60+1)
 
@@ -83,7 +83,7 @@ void do_reload_instance(void);
 void do_init_instance(void);
 void do_final_instance(void);
 
-#if MAX_MAP_PER_INSTANCE > UINT8_MAX
+#if MAX_MAP_PER_INSTANCE > 255
 	#error Too many maps per instance defined! Please adjust MAX_MAP_PER_INSTANCE to a lower value.
 #endif