1
0

TryGetHeight returns a bool

should fix #2099
This commit is contained in:
Alexander Harkness 2015-05-23 10:37:50 +01:00
parent e0fd3ce95b
commit de5e056a88

View File

@ -530,7 +530,7 @@ static int tolua_cWorld_TryGetHeight(lua_State * tolua_S)
// Call the implementation:
int Height = 0;
bool res = self->TryGetHeight(BlockX, BlockZ, Height);
L.Push(res ? 1 : 0);
L.Push(res);
if (res)
{
L.Push(Height);