projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0643cef
)
Correct misleading detached inventory error message
author
Ciaran Gultnieks
<ciaran@ciarang.com>
Fri, 7 Mar 2014 21:06:43 +0000
(21:06 +0000)
committer
sapier
<Sapier at GMX dot net>
Sun, 9 Mar 2014 10:16:09 +0000
(11:16 +0100)
Looks like a bit of hasty copying and pasting from s_item.cpp.
src/script/cpp_api/s_inventory.cpp
patch
|
blob
|
history
diff --git
a/src/script/cpp_api/s_inventory.cpp
b/src/script/cpp_api/s_inventory.cpp
index 8542f0292356973c563e892962b05b346c578c1b..db3c13fe00a234fe20dc42f8a4b8842610cb929c 100644
(file)
--- a/
src/script/cpp_api/s_inventory.cpp
+++ b/
src/script/cpp_api/s_inventory.cpp
@@
-232,7
+232,7
@@
bool ScriptApiDetached::getDetachedInventoryCallback(
// Should be a table
if(lua_type(L, -1) != LUA_TTABLE)
{
- errorstream<<"
Item
\""<<name<<"\" not defined"<<std::endl;
+ errorstream<<"
Detached inventory
\""<<name<<"\" not defined"<<std::endl;
lua_pop(L, 1);
return false;
}