Skip to content

Commit 052f854

Browse files
authored
#751 Fix crash patch provided by PointsDragon (#753)
1 parent 1a68f4c commit 052f854

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/p_db.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,10 @@ prim_roomp(PRIM_PROTOTYPE)
12591259
abort_interp("Invalid argument type.");
12601260
}
12611261

1262-
if (!valid_object(oper1) && !is_home(oper1)) {
1262+
if (is_home(oper1)) {
1263+
/* HOME per doc explicitly returns 1 */
1264+
result = 1;
1265+
} else if (!valid_object(oper1)) {
12631266
result = 0;
12641267
} else {
12651268
ref = oper1->data.objref;

0 commit comments

Comments
 (0)