Don't search for string in map, if it's known there's nothing there.

This commit is contained in:
Bartosz Taudul 2017-11-14 23:37:20 +01:00 committed by Bartosz Taudul
parent 8b2af369ad
commit 7da59a55cc

View File

@ -1387,11 +1387,19 @@ const char* View::GetString( const StringRef& ref ) const
{
if( ref.isidx )
{
assert( ref.active );
return m_stringData[ref.stridx];
}
else
{
return GetString( ref.strptr );
if( ref.active )
{
return GetString( ref.strptr );
}
else
{
return "???";
}
}
}