From 35a6aa092a296f1ff1f577c4d43381c053026e3c Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Thu, 13 Apr 2023 20:22:05 +0300 Subject: [PATCH] Fixing typo --- 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 c0c1576..5124911 100644 --- a/src/codegen.inc.php +++ b/src/codegen.inc.php @@ -347,7 +347,7 @@ function var_reset($name, \mtgType $type, $default = null) foreach($default as $k => $v) { $kf = $type->getField($k); - $str .= var_reset("$name." . $kf->name, $kf->getType(), $v); + $str .= var_reset("$name." . $kf->getName(), $kf->getType(), $v); } } }