Fix "init &var -list"

This commit is contained in:
2025-09-22 20:03:35 +10:00
parent 5ff3e8a86a
commit 7066b4300d
2 changed files with 13 additions and 1 deletions

View File

@@ -735,6 +735,12 @@ Literal exec(vector<Instruction> in, bool executingFunction) {
case Types::Bool:
newVal.val = false;
break;
case Types::List:
{
List newList;
newVal.val = newList;
}
break;
default:
return error("You dingus you werent supposed to get here");
}
@@ -1064,6 +1070,12 @@ Literal exec(vector<Instruction> in, bool executingFunction) {
case Types::Bool:
newVal.val = false;
break;
case Types::List:
{
List newList;
newVal.val = newList;
}
break;
default:
return error("You dingus you werent supposed to get here");
}