diff --git a/source/gameengine/Expressions/Value.cpp b/source/gameengine/Expressions/Value.cpp index 97b4f3951b3..ecbd2d9d6d8 100644 --- a/source/gameengine/Expressions/Value.cpp +++ b/source/gameengine/Expressions/Value.cpp @@ -284,7 +284,7 @@ void CValue::SetProperty(const STR_String & name,CValue* ioProperty) // Make sure we have a property array if (m_pNamedPropertyArray == NULL) - m_pNamedPropertyArray = new std::map; + m_pNamedPropertyArray = new std::map; // Try to replace property (if so -> exit as soon as we replaced it) CValue* oldval = (*m_pNamedPropertyArray)[name]; @@ -308,7 +308,7 @@ CValue* CValue::GetProperty(const STR_String & inName) CValue* result = NULL; if (m_pNamedPropertyArray) { - std::map::iterator it = (*m_pNamedPropertyArray).find(inName); + std::map::iterator it = (*m_pNamedPropertyArray).find(inName); if (!( it==m_pNamedPropertyArray->end())) { result = (*it).second; @@ -376,7 +376,7 @@ void CValue::ClearProperties() return; // Remove all properties - for ( std::map::iterator it = m_pNamedPropertyArray->begin(); + for ( std::map::iterator it = m_pNamedPropertyArray->begin(); !(it == m_pNamedPropertyArray->end());it++) { CValue* tmpval = (*it).second; @@ -430,7 +430,7 @@ CValue* CValue::GetProperty(int inIndex) if (m_pNamedPropertyArray) { - for ( std::map::iterator it = m_pNamedPropertyArray->begin(); + for ( std::map::iterator it = m_pNamedPropertyArray->begin(); !(it == m_pNamedPropertyArray->end());it++) { if (count++==inIndex) @@ -467,7 +467,7 @@ void CValue::CloneProperties(CValue *replica) if (m_pNamedPropertyArray) { replica->m_pNamedPropertyArray=NULL; - for ( std::map::iterator it = m_pNamedPropertyArray->begin(); + for ( std::map::iterator it = m_pNamedPropertyArray->begin(); !(it == m_pNamedPropertyArray->end());it++) { diff --git a/source/gameengine/Expressions/Value.h b/source/gameengine/Expressions/Value.h index ba394814fa7..527dfa85d39 100644 --- a/source/gameengine/Expressions/Value.h +++ b/source/gameengine/Expressions/Value.h @@ -357,7 +357,7 @@ protected: virtual ~CValue(); private: // Member variables - std::map* m_pNamedPropertyArray; // Properties for user/game etc + std::map* m_pNamedPropertyArray; // Properties for user/game etc ValueFlags m_ValFlags; // Frequently used flags in a bitfield (low memoryusage) int m_refcount; // Reference Counter static double m_sZeroVec[3];