OSDN Git Service

[Fix] #40301 我が家にアイテムを置くと「異なる銘のアイテムをまとめる」「異なる割引表示のアイテムをまとめる」が毎回リセットされる事象を修正 / Resolve...
authorHourier <hourier@users.sourceforge.jp>
Sat, 30 May 2020 15:35:59 +0000 (00:35 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sat, 30 May 2020 15:35:59 +0000 (00:35 +0900)
src/store/store.c

index 6aaa5c4..c0e25d4 100644 (file)
@@ -350,14 +350,14 @@ bool combine_and_reorder_home(int store_num)
  */
 static int home_carry(player_type *player_ptr, object_type *o_ptr)
 {
-       if (cur_store_num != STORE_HOME)
+    bool old_stack_force_notes = stack_force_notes;
+    bool old_stack_force_costs = stack_force_costs;
+    if (cur_store_num != STORE_HOME)
        {
                stack_force_notes = FALSE;
                stack_force_costs = FALSE;
        }
 
-       bool old_stack_force_notes = stack_force_notes;
-       bool old_stack_force_costs = stack_force_costs;
        for (int slot = 0; slot < st_ptr->stock_num; slot++)
        {
                object_type *j_ptr;