Fixed a warning in gui/item.cpp.