Changeset 1442

Show
Ignore:
Timestamp:
06/13/09 22:50:53 (15 months ago)
Author:
ajps
Message:

Fix selling-to-store bug reported by Timo on rgra - we should check the capacity of the current store when selling, not just the home.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/store.c

    r1435 r1442  
    23492349         
    23502350        /* Check if the store has space for the items */ 
    2351         if (!store_check_num(STORE_HOME, &sold_item)) 
     2351        if (!store_check_num(current_store(), &sold_item)) 
    23522352        { 
    23532353                msg_print("I have not the room in my store to keep it.");