Page 1 of 1

Dispel crash?

Posted: Tue Jul 30, 2013 7:08 pm
by Gratis
On revisions 3867 and up if you cast dispel or a mob cast dispel server crashes... Anyone know how to fix?

Re: Dispel crash?

Posted: Tue Jul 30, 2013 10:29 pm
by Gratis
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;
}

Re: Dispel crash?

Posted: Tue Jul 30, 2013 10:52 pm
by kjLotus
the debug break is there for a reason :p i'll get the fix in a sec

Re: Dispel crash?

Posted: Tue Jul 30, 2013 10:55 pm
by kjLotus