mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-19 14:16:46 -06:00
*Core: Fixed Value::GetCount -now returns 0 if Value !IsArray
git-svn-id: svn://ultimatepp.org/upp/trunk@4727 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
564efe6dea
commit
c907ee86cd
1 changed files with 1 additions and 1 deletions
|
|
@ -510,7 +510,7 @@ int Value::GetCount() const
|
|||
if(t == VALUEMAP_V)
|
||||
return ((ValueMap::Data *)ptr())->value.GetCount();
|
||||
}
|
||||
return ErrorValue();
|
||||
return 0;
|
||||
}
|
||||
|
||||
const Value& Value::operator[](int i) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue