diff --git a/src/codegen.inc.php b/src/codegen.inc.php index 72d00de..643a835 100644 --- a/src/codegen.inc.php +++ b/src/codegen.inc.php @@ -369,7 +369,7 @@ function var_reset($name, \mtgType $type, $default = null) } } else if($default === null) - $str .= "$name = default; "; + $str .= "$name = null; "; else throw new Exception("Bad default value for struct: " . var_export($default, true)); }