Dont loop on bad item select
This commit is contained in:
@@ -456,8 +456,12 @@ get_item(struct rogue_state *rs,char *purpose, int type)
|
|||||||
break;
|
break;
|
||||||
if (obj == NULL)
|
if (obj == NULL)
|
||||||
{
|
{
|
||||||
|
//msg(rs,"'%s' is not a valid item",unctrl(ch));
|
||||||
|
//continue;
|
||||||
|
reset_last();
|
||||||
|
after = FALSE;
|
||||||
msg(rs,"'%s' is not a valid item",unctrl(ch));
|
msg(rs,"'%s' is not a valid item",unctrl(ch));
|
||||||
continue;
|
return NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return obj;
|
return obj;
|
||||||
|
|||||||
Reference in New Issue
Block a user