EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=621)
-   -   FIX: Casting Translocate on a non-grouped player = crash (https://www.eqemulator.org/forums/showthread.php?t=13488)

Derision 04-29-2004 04:22 AM

FIX: Casting Translocate on a non-grouped player = crash
 
If a player tries to translocate another player who is not grouped,
zone will crash and the server becomes unusable.

There is no check if the spell target is grouped, and if not, SIGSEGV.

In spells.cpp, around line 2013, in case SE_Translocate:

After:
Code:

if(IsClient())
{
Group* group = entity_list.GetGroupByClient(this->CastToClient());

Add:

Code:

if(!group) {
        Message(13, "You must be grouped with the caster to be translocated.");
        break;
}


devn00b 04-29-2004 06:49 AM

Topic moved to the correct forum.

smuggler 04-30-2004 09:19 PM

hehehe
 
Noted topic movement! (You have gotten better at posting! (36))


All times are GMT -4. The time now is 09:32 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.