Remove CStr::Find(CStr)

It was only a wrapper around `std::string::find`. In some places it's
now better to use `std::string::starts_with`.
This commit is contained in:
phosit
2026-08-23 17:07:27 +02:00
parent 45ea0432a2
commit 982ede2a55
7 changed files with 17 additions and 47 deletions
+1 -1
View File
@@ -271,7 +271,7 @@ bool CObjectEntry::BuildVariation(const std::vector<const std::set<CStr>*>& comp
bool isAmmo = false;
// Handle the special attachpoint 'loaded-<proppoint>'
if (ppn.Find("loaded-") == 0)
if (ppn.starts_with("loaded-"))
{
ppn = prop.m_PropPointName.substr(7);
isAmmo = true;