Dispel crash?
Dispel crash?
On revisions 3867 and up if you cast dispel or a mob cast dispel server crashes... Anyone know how to fix?
Re: Dispel crash?
One of our team members found a temp fix for this.
remove the line : DSP_DEBUG_BREAK_IF(lua_isnil(L,1) || !lua_isnumber(L,1));
of this file src\map\lua\lua_baseentity.cpp on that function
inline int32 CLuaBaseEntity::getMod(lua_State *L)
{
DSP_DEBUG_BREAK_IF(m_PBaseEntity == NULL);
DSP_DEBUG_BREAK_IF(m_PBaseEntity->objtype == TYPE_NPC);
DSP_DEBUG_BREAK_IF(lua_isnil(L,1) || !lua_isnumber(L,1));
lua_pushinteger(L,((CBattleEntity*)m_PBaseEntity)->getMod(lua_tointeger(L,1)));
return 1;
}
remove the line : DSP_DEBUG_BREAK_IF(lua_isnil(L,1) || !lua_isnumber(L,1));
of this file src\map\lua\lua_baseentity.cpp on that function
inline int32 CLuaBaseEntity::getMod(lua_State *L)
{
DSP_DEBUG_BREAK_IF(m_PBaseEntity == NULL);
DSP_DEBUG_BREAK_IF(m_PBaseEntity->objtype == TYPE_NPC);
DSP_DEBUG_BREAK_IF(lua_isnil(L,1) || !lua_isnumber(L,1));
lua_pushinteger(L,((CBattleEntity*)m_PBaseEntity)->getMod(lua_tointeger(L,1)));
return 1;
}
Re: Dispel crash?
the debug break is there for a reason :p i'll get the fix in a sec