Added Jamdog to do_cheat. --Rumble

This commit is contained in:
Rumble 2009-07-03 16:39:58 +00:00
parent eac2c08bf1
commit 1dc7d9287a
3 changed files with 3 additions and 2 deletions

View file

@ -277,7 +277,7 @@ int valid_dg_target(struct char_data *ch, int bitvector)
{
if (IS_NPC(ch))
return TRUE; /* all npcs are allowed as targets */
else if ((STATE(ch->desc) != CON_PLAYING))
else if (ch->desc && (STATE(ch->desc) != CON_PLAYING))
return FALSE; /* Only PC's who are playing can be targetted */
else if (GET_LEVEL(ch) < LVL_IMMORT)
return TRUE; /* as well as all mortals */