Improve GUIInventoryMenu error messages more

master
Perttu Ahola 2012-06-01 19:50:00 +03:00
parent 7d6e80a423
commit 45f32838b9
1 changed files with 4 additions and 4 deletions

View File

@ -532,12 +532,12 @@ bool GUIInventoryMenu::OnEvent(const SEvent& event)
InventoryList *list = inv_s->getList(s.listname);
if(list == NULL){
errorstream<<"InventoryMenu: The selected inventory list "
<<"does not exist"<<std::endl;
errorstream<<"InventoryMenu: The selected inventory list \""
<<s.listname<<"\" does not exist"<<std::endl;
s.i = -1; // make it invalid again
} else if((u32)s.i >= list->getSize()){
errorstream<<"InventoryMenu: The selected inventory list "
<<"is too small (i="<<s.i<<", size="
errorstream<<"InventoryMenu: The selected inventory list \""
<<s.listname<<"\" is too small (i="<<s.i<<", size="
<<list->getSize()<<")"<<std::endl;
s.i = -1; // make it invalid again
} else{