Update openinventory.cpp