I noticed the following line in store_maint
This does not allow a way for store_create_random to fail in a helpful manner and can lead to an endless loop freeze. (If somebody like me has been mucking about with the game code ;-)
How about something with a for loop and a maximum number of tries?
Could also return values from store_create_random and/or store_maint to show if the process has gone as planned or not.
Code:
while (st_ptr->stock_num < stock) store_create_random(which);
How about something with a for loop and a maximum number of tries?
Could also return values from store_create_random and/or store_maint to show if the process has gone as planned or not.
Comment