Fixed ScreenPrompt::AnswerOnCommand metrics by calling LOAD_ALL_COMMANDS after the name was set.

This commit is contained in:
Kyzentun
2014-11-05 22:26:25 -07:00
parent f54f9ef521
commit 5487362902
4 changed files with 15 additions and 3 deletions
+1 -1
View File
@@ -885,7 +885,7 @@ void BitmapText::Attribute::FromStack( lua_State *L, int iPos )
lua_getfield( L, iTab, "Diffuses" );
if( !lua_isnil(L, -1) )
{
for( int i = 1; i <= 4; ++i )
for( int i = 1; i <= NUM_DIFFUSE_COLORS; ++i )
{
lua_rawgeti( L, -i, i );
diffuse[i-1].FromStack( L, -1 );