Dispel crash?

Post Reply
Gratis
Posts: 55
Joined: Wed Jun 26, 2013 11:26 pm

Dispel crash?

Post by Gratis » Tue Jul 30, 2013 7:08 pm

On revisions 3867 and up if you cast dispel or a mob cast dispel server crashes... Anyone know how to fix?

Gratis
Posts: 55
Joined: Wed Jun 26, 2013 11:26 pm

Re: Dispel crash?

Post by Gratis » Tue Jul 30, 2013 10:29 pm

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;
}

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Dispel crash?

Post by kjLotus » Tue Jul 30, 2013 10:52 pm

the debug break is there for a reason :p i'll get the fix in a sec

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Dispel crash?

Post by kjLotus » Tue Jul 30, 2013 10:55 pm


Post Reply