Error on unknown jump locations

This commit is contained in:
Anuken 2021-03-09 15:51:36 -05:00
parent ae2736d393
commit 429ff738f9

View file

@ -174,6 +174,9 @@ public class LParser{
//load destination indices
for(var i : jumps){
if(!jumpLocations.containsKey(i.location)){
error("Undefined jump location: \"" + i.location + "\". Make sure the jump label exists and is typed correctly.");
}
i.jump.destIndex = jumpLocations.get(i.location, -1);
}