diff options
-rw-r--r-- | engines/wintermute/scriptables/ScValue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/scriptables/ScValue.cpp b/engines/wintermute/scriptables/ScValue.cpp index f42cbf6a30..b843e2032c 100644 --- a/engines/wintermute/scriptables/ScValue.cpp +++ b/engines/wintermute/scriptables/ScValue.cpp @@ -230,8 +230,8 @@ HRESULT CScValue::SetProp(char *Name, CScValue *Val, bool CopyWhole, bool SetAsC /*
m_ValIter = m_ValObject.find(Name);
if (m_ValIter != m_ValObject.end()){
- delete m_ValIter->second;
- m_ValIter->second = NULL;
+ delete m_ValIter->_value;
+ m_ValIter->_value = NULL;
}
CScValue* val = new CScValue(Game);
val->Copy(Val, CopyWhole);
|