Fix clang errors

This commit is contained in:
Eidolon 2024-01-02 13:17:50 -06:00
parent 4277c6d930
commit 4a761c2e27
3 changed files with 11 additions and 7 deletions

View file

@ -7,9 +7,11 @@
// terms of the GNU General Public License, version 2.
// See the 'LICENSE' file for more details.
//-----------------------------------------------------------------------------
/// \file k_botitem.c
/// \file k_botitem.cpp
/// \brief Bot item usage logic
#include <algorithm>
#include <tracy/tracy/Tracy.hpp>
#include "doomdef.h"

View file

@ -7,9 +7,11 @@
// terms of the GNU General Public License, version 2.
// See the 'LICENSE' file for more details.
//-----------------------------------------------------------------------------
/// \file k_botsearch.c
/// \file k_botsearch.cpp
/// \brief Bot blockmap search functions
#include <algorithm>
#include <tracy/tracy/Tracy.hpp>
#include "doomdef.h"

View file

@ -4473,7 +4473,7 @@ static void K_drawKartMinimap(void)
MiniWaypoint(waypoint_t* wp) : waypoint(wp), rank(K_RankMinimapWaypoint(wp)) {}
bool operator<(const MiniWaypoint& b) { return rank < b.rank; }
bool operator<(const MiniWaypoint& b) const noexcept { return rank < b.rank; }
};
std::vector<MiniWaypoint> waypoints;