glob tweak

Sometime back I oversimplified this bit of code to the point where
the impossible(), if ever triggered, would have been followed by a
crash.
This commit is contained in:
PatR
2016-04-29 01:39:03 -07:00
parent 1e0ab8f92f
commit b9e92fc179

View File

@@ -2587,9 +2587,10 @@ struct obj *
obj_nexto(otmp)
struct obj *otmp;
{
if (!otmp)
if (!otmp) {
impossible("obj_nexto: wasn't given an object to check");
return (struct obj *) 0;
}
return obj_nexto_xy(otmp, otmp->ox, otmp->oy, TRUE);
}