Fixing generic structs support
This commit is contained in:
parent
fc4a2403da
commit
945594c366
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue