hairstyle* equipcache::gethair(int hid) { if (!hairstyles.count(hid)) { hairstyles[hid] = hairstyle(hid, &bodyinfo.posmap); } return &hairstyles[hid]; }
hairstyle lookfactory::gethair(int hid) { if (!hairstyles.count(hid)) { hairstyles[hid] = hairstyle(hid, &bodyheadmap); } return hairstyles[hid]; }
hairstyle* equipcache::gethair(int hid) { if (!hairstyles.count(hid)) { app.getimgcache()->setmode(ict_sys); hairstyles[hid] = hairstyle(hid, &bodyinfo.posmap); app.getimgcache()->unlock(); } return &hairstyles[hid]; }