Skip to content

Commit 5739756

Browse files
committed
fix: linux build
1 parent c583a5f commit 5739756

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Features/Demo/GhostEntity.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ struct DataGhost {
2121
return {{NAN, NAN, NAN}, {NAN, NAN, NAN}, NAN, false};
2222
}
2323
bool IsValid() const {
24-
return !isnan(position.x) && !isnan(position.y) && !isnan(position.z)
25-
&& !isnan(view_angle.x) && !isnan(view_angle.y) && !isnan(view_angle.z)
26-
&& !isnan(view_offset);
24+
return !std::isnan(position.x) && !std::isnan(position.y) && !std::isnan(position.z)
25+
&& !std::isnan(view_angle.x) && !std::isnan(view_angle.y) && !std::isnan(view_angle.z)
26+
&& !std::isnan(view_offset);
2727
}
2828
};
2929

0 commit comments

Comments
 (0)