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:
3b8a817
)
アライメントの計算で先にjをデクリメントしないとSEGVるので修正。
author
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 2 Mar 2002 06:16:04 +0000
(06:16 +0000)
committer
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 2 Mar 2002 06:16:04 +0000
(06:16 +0000)
src/xtra1.c
patch
|
blob
|
history
diff --git
a/src/xtra1.c
b/src/xtra1.c
index
938fb33
..
8f08d61
100644
(file)
--- a/
src/xtra1.c
+++ b/
src/xtra1.c
@@
-5464,6
+5464,7
@@
msg_print("
}
while (j)
{
}
while (j)
{
+ j--;
if (p_ptr->align > 0)
{
p_ptr->align -= (p_ptr->virtues[neutral[j]]/2);
if (p_ptr->align > 0)
{
p_ptr->align -= (p_ptr->virtues[neutral[j]]/2);
@@
-5474,7
+5475,6
@@
msg_print("
p_ptr->align += (p_ptr->virtues[neutral[j]]/2);
if (p_ptr->align > 0) p_ptr->align = 0;
}
p_ptr->align += (p_ptr->virtues[neutral[j]]/2);
if (p_ptr->align > 0) p_ptr->align = 0;
}
- j--;
}
if ((inventory[INVEN_RARM].name1 == ART_IRON_BALL) || (inventory[INVEN_LARM].name1 == ART_IRON_BALL)) p_ptr->align -= 1000;
if (prace_is_(RACE_ANGEL)) p_ptr->align += 200;
}
if ((inventory[INVEN_RARM].name1 == ART_IRON_BALL) || (inventory[INVEN_LARM].name1 == ART_IRON_BALL)) p_ptr->align -= 1000;
if (prace_is_(RACE_ANGEL)) p_ptr->align += 200;