mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user