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:
c691d61
)
check parameters for minetest.log lua function
author
sapier
<Sapier at GMX dot net>
Sat, 26 Jan 2013 10:32:08 +0000
(10:32 +0000)
committer
sapier
<Sapier at GMX dot net>
Sat, 26 Jan 2013 10:32:08 +0000
(10:32 +0000)
src/scriptapi.cpp
patch
|
blob
|
history
diff --git
a/src/scriptapi.cpp
b/src/scriptapi.cpp
index 8e4a43266c645733a8ef6572fbfaacff8eb44be1..35e708a04749f7fe4ac78dccd99cce6c5e0ba6af 100644
(file)
--- a/
src/scriptapi.cpp
+++ b/
src/scriptapi.cpp
@@
-4415,8
+4415,8
@@
static int l_log(lua_State *L)
}
else
{
- std::string levelname = lua
_to
string(L, 1);
- text = lua
_to
string(L, 2);
+ std::string levelname = lua
L_check
string(L, 1);
+ text = lua
L_check
string(L, 2);
if(levelname == "error")
level = LMT_ERROR;
else if(levelname == "action")