clothing* equipcache::getcloth(int iid) { if (!clothes.count(iid)) { clothes[iid] = clothing(iid, &bodyinfo.posmap); } return &clothes[iid]; }
clothing lookfactory::getcloth(int iid) { if (!clothes.count(iid)) { clothes[iid] = clothing(iid, &bodyheadmap); } return clothes[iid]; }
clothing* equipcache::getcloth(int iid) { if (!clothes.count(iid)) { app.getimgcache()->setmode(ict_sys); clothes[iid] = clothing(iid, &bodyinfo.posmap); app.getimgcache()->unlock(); } return &clothes[iid]; }