mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 15:02:03 -08:00
Error on unknown jump locations
This commit is contained in:
parent
ae2736d393
commit
429ff738f9
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue