more changes.

This commit is contained in:
Jeff Hutchinson 2021-04-12 21:26:26 -04:00
parent 960db74733
commit 93500b6ac4
4 changed files with 185 additions and 40 deletions

View file

@ -114,7 +114,7 @@ static void dumpVariable( Stream& stream,
{
// Skip variables defined in script.
if( !entry->value.isConsoleType() )
if( entry->type <= Dictionary::Entry::TypeInternalString )
return;
// Skip internals... don't export them.
@ -149,7 +149,7 @@ static void dumpVariable( Stream& stream,
// Skip variables for which we can't decipher their type.
ConsoleBaseType* type = ConsoleBaseType::getType( entry->value.getType() );
ConsoleBaseType* type = ConsoleBaseType::getType( entry->type );
if( !type )
{
Con::errorf( "Can't find type for variable '%s'", entry->name );