OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79293b6
)
[Fix] #38997 sword_dancing() 内変数参照修正. / Fix variable references in sword_dancing().
author
deskull
<deskull@users.sourceforge.jp>
Sat, 4 Jan 2020 07:30:26 +0000
(16:30 +0900)
committer
deskull
<deskull@users.sourceforge.jp>
Sat, 4 Jan 2020 07:30:26 +0000
(16:30 +0900)
src/spells2.c
patch
|
blob
|
history
diff --git
a/src/spells2.c
b/src/spells2.c
index
a21319d
..
d174fab
100644
(file)
--- a/
src/spells2.c
+++ b/
src/spells2.c
@@
-4352,11
+4352,11
@@
bool sword_dancing(player_type *creature_ptr)
dir = randint0(8);
y = creature_ptr->y + ddy_ddd[dir];
x = creature_ptr->x + ddx_ddd[dir];
- g_ptr = &
p
_ptr->current_floor_ptr->grid_array[y][x];
+ g_ptr = &
creature
_ptr->current_floor_ptr->grid_array[y][x];
/* Hack -- attack monsters */
if (g_ptr->m_idx)
- py_attack(
p
_ptr, y, x, 0);
+ py_attack(
creature
_ptr, y, x, 0);
else
{
msg_print(_("攻撃が空をきった。", "You attack the empty air."));