forked from ground/ground
Fix "init &var -list"
This commit is contained in:
Submodule libraries updated: 52e95e987f...5e7de482e7
12
src/main.cpp
12
src/main.cpp
@@ -735,6 +735,12 @@ Literal exec(vector<Instruction> in, bool executingFunction) {
|
|||||||
case Types::Bool:
|
case Types::Bool:
|
||||||
newVal.val = false;
|
newVal.val = false;
|
||||||
break;
|
break;
|
||||||
|
case Types::List:
|
||||||
|
{
|
||||||
|
List newList;
|
||||||
|
newVal.val = newList;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return error("You dingus you werent supposed to get here");
|
return error("You dingus you werent supposed to get here");
|
||||||
}
|
}
|
||||||
@@ -1064,6 +1070,12 @@ Literal exec(vector<Instruction> in, bool executingFunction) {
|
|||||||
case Types::Bool:
|
case Types::Bool:
|
||||||
newVal.val = false;
|
newVal.val = false;
|
||||||
break;
|
break;
|
||||||
|
case Types::List:
|
||||||
|
{
|
||||||
|
List newList;
|
||||||
|
newVal.val = newList;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return error("You dingus you werent supposed to get here");
|
return error("You dingus you werent supposed to get here");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user