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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user