This commit is contained in:
Chris Danford
2005-07-25 07:39:29 +00:00
parent cdb3b2da17
commit fd8e1e61a7
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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() );
+2 -1
View File
@@ -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 );