瀏覽代碼

Fixed a compile warning on centos

Fixes #1969
Thanks to @technoken
Lemongrass3110 8 年之前
父節點
當前提交
eebbf1de93
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/map/cashshop.c

+ 1 - 1
src/map/cashshop.c

@@ -467,7 +467,7 @@ bool cashshop_buylist( struct map_session_data* sd, uint32 kafrapoints, int n, u
 	uint32 totalweight = 0;
 	int i,new_;
 #if PACKETVER_SUPPORTS_SALES
-	struct sale_item_data* sale;
+	struct sale_item_data* sale = NULL;
 #endif
 
 	if( sd == NULL || item_list == NULL || !cash_shop_defined){