git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16328 54d463be-8e91-2dee-dedb-b68131a5f0ec
@@ -194,7 +194,7 @@ static int unit_walktoxy_timer(int tid, unsigned int tick, int id, intptr_t data
unit_warp( &sd->md->bl, sd->bl.m, sd->bl.x, sd->bl.y, CLR_TELEPORT );
}
- else
+ else if( sd->md )
{
// reset the tick, he is not far anymore
sd->md->masterteleport_timer = 0;