OSDN Git Service

Revert "Merge branch 'master' of git.osdn.net:/gitroot/hengband/hengband"
[hengband/hengband.git] / src / cmd-usestaff.c
index 746391d..4ab7403 100644 (file)
@@ -1,16 +1,9 @@
 #include "angband.h"
-#include "util.h"
-
+#include "projection.h"
 #include "spells-summon.h"
 #include "avatar.h"
 #include "player-status.h"
-#include "player-effects.h"
-#include "spells.h"
 #include "spells-status.h"
-#include "spells-floor.h"
-#include "object-hook.h"
-#include "cmd-basic.h"
-#include "floor.h"
 
 
 
@@ -289,7 +282,7 @@ void do_cmd_use_staff_aux(INVENTORY_IDX item)
        /* Get the item (in the pack) */
        if (item >= 0)
        {
-               o_ptr = &p_ptr->inventory_list[item];
+               o_ptr = &inventory[item];
        }
 
        /* Get the item (on the floor) */