Fix subscript out of range crash

This commit is contained in:
Zach Mullen 2010-06-03 13:52:48 -04:00
parent 082c87e528
commit d6b71078da

View File

@ -61,7 +61,10 @@ private:
std::string GetCurrentValue()
{
std::string val;
val.assign(&this->CurrentValue[0], this->CurrentValue.size());
if(this->CurrentValue.size())
{
val.assign(&this->CurrentValue[0], this->CurrentValue.size());
}
return val;
}