diff --git a/source/ps/Parser.h b/source/ps/Parser.h index 2bd0526ce7..a0f363e265 100755 --- a/source/ps/Parser.h +++ b/source/ps/Parser.h @@ -237,7 +237,7 @@ private: typedef typename std::map::iterator iterator; ~SDMap() { - for (iterator it = begin(); it != end(); ++it) delete it->second; + for (iterator it = this->begin(); it != this->end(); ++it) delete it->second; } }; diff --git a/source/scripting/SynchedJSObject.h b/source/scripting/SynchedJSObject.h index a795030a30..2727a6ddbf 100644 --- a/source/scripting/SynchedJSObject.h +++ b/source/scripting/SynchedJSObject.h @@ -142,8 +142,8 @@ protected: template void AddSynchedProperty(CStrW name, T *native, UpdateFn update=NULL) { ISynchedJSProperty *prop=new CSynchedJSProperty(name, native, this, update); - m_NonsharedProperties[name]=prop; - m_SynchedProperties[name]=prop; + this->m_NonsharedProperties[name]=prop; + this->m_SynchedProperties[name]=prop; } };