cleanup
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
ActorCommands::ActorCommands( const CString &sCommands )
|
||||
{
|
||||
if( sCommands.Left(1) == "%" )
|
||||
if( sCommands.size() > 0 && sCommands[0] == '%' )
|
||||
{
|
||||
m_sLuaFunction = sCommands;
|
||||
m_sLuaFunction.erase( m_sLuaFunction.begin() );
|
||||
|
||||
@@ -685,7 +685,8 @@ CString ThemeManager::GetMetric( const CString &sClassName, const CString &sValu
|
||||
|
||||
void ThemeManager::EvaluateString( CString &sText )
|
||||
{
|
||||
/* If the string begins with an @, treat it as a Lua expression.
|
||||
/* If the string begins with an @, then this is a Lua expression
|
||||
* that should be evaluated immediately.
|
||||
* Still do font aliases on the resulting string. */
|
||||
LuaHelpers::RunAtExpressionS( sText );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user