X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fstore.c;h=c00de76917197a1dfa73d0abfd254017bc6e17fa;hb=fcbc4f0a83f741cb2f402b8a3e63ef1e3e3edc97;hp=a88b12b060df40da364d6b2fb02597dae1ead9d0;hpb=2a47775b86982322105c184ab417f8bd8c57067c;p=hengband%2Fhengband.git diff --git a/src/store.c b/src/store.c index a88b12b06..c00de7691 100644 --- a/src/store.c +++ b/src/store.c @@ -3387,11 +3387,9 @@ static void store_create(void) object_type forge; object_type *q_ptr; - /* Paranoia -- no room left */ if (st_ptr->stock_num >= st_ptr->stock_size) return; - /* Hack -- consider up to four items */ for (tries = 0; tries < 4; tries++) { @@ -3402,7 +3400,7 @@ static void store_create(void) level = 25 + randint0(25); /* Random item (usually of given level) */ - i = get_obj_num(level); + i = get_obj_num(level, 0x00000000); /* Handle failure */ if (!i) continue;