Fixing generic structs support

This commit is contained in:
Pavel Shevaev 2023-08-08 15:05:59 +03:00
parent fc4a2403da
commit 945594c366
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ function var_sync($fname, \mtgType $type, $buf, array $tokens, $opts)
else if($type instanceof \mtgMetaStruct)
{
if(array_key_exists('virtual', $tokens))
$str .= "{$fname} = ({$type->getName()})MetaSync.SyncGeneric({$buf}, {$fname}, \"{$key_name}\", {$opts});\n";
$str .= "{$fname} = MetaSync.SyncGeneric({$buf}, {$fname}, \"{$key_name}\", {$opts});\n";
else
$str .= "MetaSync.Sync({$buf}, ref {$fname}, \"{$key_name}\", {$opts});\n";
}