Skip to content

Commit

Permalink
Merge pull request #6535 from Goober5000/set_with_breed
Browse files Browse the repository at this point in the history
make line-of-sight objects aware of its subclasses
  • Loading branch information
Goober5000 authored Jan 18, 2025
2 parents adb0fa6 + 1c21170 commit b1406bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/scripting/api/libs/mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2329,7 +2329,7 @@ int testLineOfSight_internal(lua_State* L, bool returnDist_and_Obj) {
bool hasLoS = test_line_of_sight(&from, &to, std::move(excludedObjectIDs), threshold, testForShields, testForHull, dist, &intersecting_obj);
if (returnDist_and_Obj)
return ade_set_args(L, "bfo", hasLoS, *dist, l_Object.Set(object_h(intersecting_obj)));
return ade_set_args(L, "bfo", hasLoS, *dist, ade_object_to_odata(OBJ_INDEX(intersecting_obj)));
else
return ade_set_args(L, "b", hasLoS);
}
Expand Down

0 comments on commit b1406bc

Please sign in to comment.