OSDN Git Service

[Refactor] #37353 monster.h に関数定義移動。
[hengband/hengband.git] / src / cmd-read.c
index fb1ec6d..91c70a5 100644 (file)
@@ -15,6 +15,7 @@
 #include "realm-hex.h"
 
 #include "spells-object.h"
+#include "spells-floor.h"
 #include "spells-summon.h"
 #include "spells-status.h"
 
@@ -28,7 +29,7 @@
  * <pre>
  * Certain scrolls can be "aborted" without losing the scroll.  These
  * include scrolls with no effects but recharge or identify, which are
- * cancelled before use.  XXX Reading them still takes a turn, though.
+ * cancelled before use.  XXX Reading them still takes a current_world_ptr->game_turn, though.
  * </pre>
  */
 void do_cmd_read_scroll_aux(INVENTORY_IDX item, bool known)
@@ -46,7 +47,7 @@ void do_cmd_read_scroll_aux(INVENTORY_IDX item, bool known)
        /* Get the item (on the floor) */
        else
        {
-               o_ptr = &o_list[0 - item];
+               o_ptr = &current_floor_ptr->o_list[0 - item];
        }
 
        take_turn(p_ptr, 100);