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:
ccf108e
)
[Fix] #39954 中途半端に条件を反転させていたのを修正 / Fixed incomplete inversion of if condition
author
Hourier
<hourier@users.sourceforge.jp>
Sat, 25 Jan 2020 09:38:03 +0000
(18:38 +0900)
committer
Hourier
<hourier@users.sourceforge.jp>
Sat, 25 Jan 2020 09:38:03 +0000
(18:38 +0900)
src/store.c
patch
|
blob
|
history
diff --git
a/src/store.c
b/src/store.c
index
8300683
..
47991ca
100644
(file)
--- a/
src/store.c
+++ b/
src/store.c
@@
-2884,7
+2884,7
@@
bool combine_and_reorder_home(int store_num)
int max_num = object_similar_part(j_ptr, o_ptr);
/* Can we (partialy) drop "o_ptr" onto "j_ptr"? */
- if (max_num
&&
j_ptr->number >= max_num) continue;
+ if (max_num
== 0 ||
j_ptr->number >= max_num) continue;
if (o_ptr->number + j_ptr->number <= max_num)
{