forked from ground/ground
Fix "init &var -list"
This commit is contained in:
12
src/main.cpp
12
src/main.cpp
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user