rd_s16b(&creature_ptr->add_spells);
}
-static errr load_store(player_type *creature_ptr)
-{
- u16b tmp16u;
- rd_u16b(&tmp16u);
- int town_count = tmp16u;
- rd_u16b(&tmp16u);
- for (int i = 1; i < town_count; i++)
- for (int j = 0; j < tmp16u; j++)
- if (rd_store(creature_ptr, i, j))
- return 22;
-
- return 0;
-}
-
static errr verify_checksum()
{
u32b n_v_check = v_check;
* @param store_number 店舗ID
* @return エラーID
*/
-errr rd_store(player_type *player_ptr, int town_number, int store_number)
+static errr rd_store(player_type *player_ptr, int town_number, int store_number)
{
store_type *store_ptr;
bool sort = FALSE;
return 0;
}
+
+errr load_store(player_type *creature_ptr)
+{
+ u16b tmp16u;
+ rd_u16b(&tmp16u);
+ int town_count = tmp16u;
+ rd_u16b(&tmp16u);
+ for (int i = 1; i < town_count; i++)
+ for (int j = 0; j < tmp16u; j++)
+ if (rd_store(creature_ptr, i, j))
+ return 22;
+
+ return 0;
+}
#include "system/angband.h"
#include "store/store-util.h"
-errr rd_store(player_type *player_ptr, int town_number, int store_number);
+errr load_store(player_type *creature_ptr);