Skip to content

Commit f6e3fd5

Browse files
tamlin-mikeXottab-DUTY
authored andcommitted
[POSIX -> ISO C++] strcmpi.
1 parent f9c8e21 commit f6e3fd5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/xrEngine/GameMtlLib.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ typedef xr_vector<shared_str> PSVec;
5555
typedef PSVec::iterator PSIt;
5656
#endif
5757

58+
#include "xrCore/xrDebug_macros.h"
59+
#pragma todo("Place at least CGameMtlLibrary in a static lib or something. It currently gets instantiated a huge amount of times.")
60+
5861
struct MTL_EXPORT_API SGameMtl
5962
{
6063
friend class CGameMtlLibrary;
@@ -247,7 +250,7 @@ class MTL_EXPORT_API CGameMtlLibrary
247250

248251
GameMtlIt GetMaterialIt(LPCSTR name)
249252
{
250-
auto pred = [&](const SGameMtl* mtl) { return !strcmpi(mtl->m_Name.c_str(), name); };
253+
auto pred = [&](const SGameMtl* mtl) { return !_strcmpi(mtl->m_Name.c_str(), name); };
251254
return std::find_if(materials.begin(), materials.end(), pred);
252255
}
253256
GameMtlIt GetMaterialIt(shared_str& name)

0 commit comments

Comments
 (0)