Browse Source

Fixed a compile warning on centos

Fixes #1969
Thanks to @technoken
Lemongrass3110 8 years ago
parent
commit
eebbf1de93
1 changed files with 1 additions and 1 deletions
  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){