1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-01 10:45:33 +00:00

Fixed logic in commit crime

This commit is contained in:
Jeffrey Haines 2014-04-30 07:44:29 -04:00
parent edbc319c42
commit 14ebd8b110

View file

@ -860,8 +860,8 @@ namespace MWMechanics
// Tell everyone, including yourself // Tell everyone, including yourself
for (std::vector<MWWorld::Ptr>::iterator it1 = neighbors.begin(); it1 != neighbors.end(); ++it1) for (std::vector<MWWorld::Ptr>::iterator it1 = neighbors.begin(); it1 != neighbors.end(); ++it1)
{ {
if ( *it == ptr if ( *it1 == ptr
|| !it->getClass().isNpc()) continue; // not the player and is an NPC || !it1->getClass().isNpc()) continue; // not the player and is an NPC
// TODO: Add more messages // TODO: Add more messages
if (type == OT_Theft) if (type == OT_Theft)