Dont loop on bad item select

This commit is contained in:
jl777
2019-02-18 06:06:47 -11:00
parent 92e136108c
commit 12c97d71a7

View File

@@ -456,8 +456,12 @@ get_item(struct rogue_state *rs,char *purpose, int type)
break;
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));
continue;
return NULL;
}
else
return obj;