From baefcfe61459e60aa1cd38e7830d681662c1a285 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 27 Mar 2024 12:57:01 +0300 Subject: [PATCH] Typo fixed --- src/codegen.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen.inc.php b/src/codegen.inc.php index 0e53152..b679c17 100644 --- a/src/codegen.inc.php +++ b/src/codegen.inc.php @@ -453,7 +453,7 @@ function var_sync($fname, \mtgType $type, $buf, array $tokens, $opts) $str .= "{\n"; $str .= "var tmp_enums_list = new List(); if(!{$buf}.is_read) { foreach(var _enum_tmp in {$fname}) tmp_enums_list.Add((int)_enum_tmp); }\n"; $str .= "MetaIO.Sync({$buf}, tmp_enums_list, \"{$key_name}\", {$opts});\n"; - $str .= "if({$buf}.is_read) { {$fname}.Clear(); foreach(var _int_tmp in MetaIO.tmp_enums_list) {$fname}.Add(({$type->getValue()->getName()}) _int_tmp); }\n"; + $str .= "if({$buf}.is_read) { {$fname}.Clear(); foreach(var _int_tmp in tmp_enums_list) {$fname}.Add(({$type->getValue()->getName()}) _int_tmp); }\n"; $str .= "}\n"; } else