mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-12-18 18:44:02 +00:00
replaced == operator for string comparsion in npc check with boost algorithm to get case insensitive check.
This commit is contained in:
parent
31c59db71c
commit
688488de62
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#include "referenceablecheck.hpp"
|
#include "referenceablecheck.hpp"
|
||||||
#include "../world/record.hpp"
|
#include "../world/record.hpp"
|
||||||
#include "../world/universalid.hpp"
|
#include "../world/universalid.hpp"
|
||||||
#include <iostream>
|
#include <boost/algorithm/string.hpp>
|
||||||
|
|
||||||
CSMTools::ReferenceableCheckStage::ReferenceableCheckStage(
|
CSMTools::ReferenceableCheckStage::ReferenceableCheckStage(
|
||||||
const CSMWorld::RefIdData& referenceable, const CSMWorld::IdCollection<ESM::Race >& races,
|
const CSMWorld::RefIdData& referenceable, const CSMWorld::IdCollection<ESM::Race >& races,
|
||||||
|
|
@ -651,7 +651,7 @@ void CSMTools::ReferenceableCheckStage::npcCheck(
|
||||||
int gold(npc.mNpdt52.mGold);
|
int gold(npc.mNpdt52.mGold);
|
||||||
|
|
||||||
//Detect if player is present
|
//Detect if player is present
|
||||||
if (npc.mId == "player")
|
if ( boost::algorithm::iequals(npc.mId, "player") )
|
||||||
{
|
{
|
||||||
mPlayerPresent = true;
|
mPlayerPresent = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue