소스 검색

* Minor clean-ups to buyingstore and searchstore code (follow up to r14732).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14733 54d463be-8e91-2dee-dedb-b68131a5f0ec
ai4rei 14 년 전
부모
커밋
a54e55ae82
2개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      src/map/buyingstore.c
  2. 1 2
      src/map/searchstore.c

+ 1 - 1
src/map/buyingstore.c

@@ -34,7 +34,7 @@ enum e_buyingstore_failure
 
 
 static unsigned int buyingstore_nextid = 0;
-static short buyingstore_blankslots[MAX_SLOTS] = { 0 };  // used when checking whether or not an item's card slots are blank
+static const short buyingstore_blankslots[MAX_SLOTS] = { 0 };  // used when checking whether or not an item's card slots are blank
 
 
 /// Returns unique buying store id

+ 1 - 2
src/map/searchstore.c

@@ -5,10 +5,9 @@
 #include "../common/malloc.h"  // aMalloc, aRealloc, aFree
 #include "../common/showmsg.h"  // ShowError, ShowWarning
 #include "../common/strlib.h"  // safestrncpy
-#include "atcommand.h"  // msg_txt
 #include "battle.h"  // battle_config.*
 #include "clif.h"  // clif_open_search_store_info, clif_search_store_info_*
-#include "pc.h"  // struct map_session_data, pc_setpos, pc_isGM
+#include "pc.h"  // struct map_session_data
 #include "searchstore.h"  // struct s_search_store_info