copying a temporary.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1373 c06c8d41-db1a-0410-9941-cceddc491573
MTO3TFIVBJGJZDFMNJZYZPDNF6DAPEEFXVDF6VKXIXRFZTNKYECAC // mangle a temporaryitem_def temp_item = si.item;if ( shoptype_identifies_stock(this->shoptype) )temp_item.flags |= ISFLAG_IDENT_MASK;describe_item( temp_item );
const unsigned long oldflags = si.item.flags;if (shoptype_identifies_stock(this->shoptype))const_cast<shop_item&>(si).item.flags |= ISFLAG_IDENT_MASK;describe_item( si.item );if ( oldflags != si.item.flags )const_cast<shop_item&>(si).item.flags = oldflags;