소스 검색

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){