From e34f097543c7a2b733a6d6a8b55a26a6777b5e83 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 11 Nov 2012 14:00:58 +0000 Subject: Hopefully a fix for crash when chunks are added to a client being destroyed. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1032 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Bindings.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/Bindings.cpp') diff --git a/source/Bindings.cpp b/source/Bindings.cpp index 40c5d719a..ed082c93e 100644 --- a/source/Bindings.cpp +++ b/source/Bindings.cpp @@ -1,6 +1,6 @@ /* ** Lua binding: AllToLua -** Generated automatically by tolua++-1.0.92 on 11/01/12 22:24:07. +** Generated automatically by tolua++-1.0.92 on 11/11/12 14:50:43. */ #ifndef __cplusplus @@ -3882,14 +3882,14 @@ static int tolua_AllToLua_cClientHandle_GetViewDistance00(lua_State* tolua_S) #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( - !tolua_isusertype(tolua_S,1,"cClientHandle",0,&tolua_err) || + !tolua_isusertype(tolua_S,1,"const cClientHandle",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { - cClientHandle* self = (cClientHandle*) tolua_tousertype(tolua_S,1,0); + const cClientHandle* self = (const cClientHandle*) tolua_tousertype(tolua_S,1,0); #ifndef TOLUA_RELEASE if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetViewDistance'", NULL); #endif @@ -11542,7 +11542,7 @@ static int tolua_AllToLua_cWorld_SetWorldTime00(lua_State* tolua_S) #endif { cWorld* self = (cWorld*) tolua_tousertype(tolua_S,1,0); - long long a_TimeOfDay = ((long long) tolua_tonumber(tolua_S,2,0)); + long long a_TimeOfDay = (( long long) tolua_tonumber(tolua_S,2,0)); #ifndef TOLUA_RELEASE if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWorldTime'", NULL); #endif -- cgit v1.2.3