Fixed logic in commit crime

openmw-30
Jeffrey Haines 11 years ago
parent edbc319c42
commit 14ebd8b110

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

Loading…
Cancel
Save