OSDN Git Service
(root)
/
hengband
/
hengband.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Refactor] #38997 choose_object() に player_type * 引数を追加し宣言を player-inventory.h に移動.
[hengband/hengband.git]
/
src
/
cmd-usestaff.c
diff --git
a/src/cmd-usestaff.c
b/src/cmd-usestaff.c
index
8b4e894
..
6c77a41
100644
(file)
--- a/
src/cmd-usestaff.c
+++ b/
src/cmd-usestaff.c
@@
-7,6
+7,7
@@
#include "player-status.h"
#include "player-effects.h"
#include "player-class.h"
#include "player-status.h"
#include "player-effects.h"
#include "player-class.h"
+#include "player-inventory.h"
#include "spells.h"
#include "spells-status.h"
#include "spells-floor.h"
#include "spells.h"
#include "spells-status.h"
#include "spells-floor.h"
@@
-433,7
+434,7
@@
void do_cmd_use_staff(player_type *creature_ptr)
q = _("どの杖を使いますか? ", "Use which staff? ");
s = _("使える杖がない。", "You have no staff to use.");
q = _("どの杖を使いますか? ", "Use which staff? ");
s = _("使える杖がない。", "You have no staff to use.");
- if (!choose_object(&item, q, s, (USE_INVEN | USE_FLOOR), TV_STAFF)) return;
+ if (!choose_object(
p_ptr,
&item, q, s, (USE_INVEN | USE_FLOOR), TV_STAFF)) return;
exe_use_staff(creature_ptr, item);
}
exe_use_staff(creature_ptr, item);
}