mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Improve GUIInventoryMenu error messages more
This commit is contained in:
parent
7d6e80a423
commit
45f32838b9
@ -532,12 +532,12 @@ bool GUIInventoryMenu::OnEvent(const SEvent& event)
|
|||||||
|
|
||||||
InventoryList *list = inv_s->getList(s.listname);
|
InventoryList *list = inv_s->getList(s.listname);
|
||||||
if(list == NULL){
|
if(list == NULL){
|
||||||
errorstream<<"InventoryMenu: The selected inventory list "
|
errorstream<<"InventoryMenu: The selected inventory list \""
|
||||||
<<"does not exist"<<std::endl;
|
<<s.listname<<"\" does not exist"<<std::endl;
|
||||||
s.i = -1; // make it invalid again
|
s.i = -1; // make it invalid again
|
||||||
} else if((u32)s.i >= list->getSize()){
|
} else if((u32)s.i >= list->getSize()){
|
||||||
errorstream<<"InventoryMenu: The selected inventory list "
|
errorstream<<"InventoryMenu: The selected inventory list \""
|
||||||
<<"is too small (i="<<s.i<<", size="
|
<<s.listname<<"\" is too small (i="<<s.i<<", size="
|
||||||
<<list->getSize()<<")"<<std::endl;
|
<<list->getSize()<<")"<<std::endl;
|
||||||
s.i = -1; // make it invalid again
|
s.i = -1; // make it invalid again
|
||||||
} else{
|
} else{
|
||||||
|
Loading…
Reference in New Issue
Block a user