OSDN Git Service

[Refactor] #37353 バリアント名称とバージョン定義を core.h へ移動.
[hengband/hengband.git] / src / cmd-quaff.c
index 3c88fbb..c398785 100644 (file)
 #include "object-hook.h"
 #include "mutation.h"
 #include "avatar.h"
+#include "spells.h"
 #include "spells-status.h"
 #include "player-status.h"
 #include "player-effects.h"
+#include "player-race.h"
 #include "realm-hex.h"
+#include "realm-song.h"
 #include "spells-floor.h"
 #include "object-broken.h"
 #include "cmd-basic.h"
+#include "floor.h"
+#include "objectkind.h"
 
 /*!
  * @brief 薬を飲むコマンドのサブルーチン /
@@ -56,7 +61,7 @@ void do_cmd_quaff_potion_aux(INVENTORY_IDX item)
        /* Get the item (in the pack) */
        if (item >= 0)
        {
-               o_ptr = &inventory[item];
+               o_ptr = &p_ptr->inventory_list[item];
        }
 
        /* Get the item (on the floor) */
@@ -72,7 +77,7 @@ void do_cmd_quaff_potion_aux(INVENTORY_IDX item)
        /* Single object */
        q_ptr->number = 1;
 
-       /* Reduce and describe inventory */
+       /* Reduce and describe p_ptr->inventory_list */
        if (item >= 0)
        {
                inven_item_increase(item, -1);