diff --git a/SMILEBASIC/VM.d b/SMILEBASIC/VM.d index a2ac9fe..1272e1d 100644 --- a/SMILEBASIC/VM.d +++ b/SMILEBASIC/VM.d @@ -129,7 +129,7 @@ class VM } void processBreakPoint() { - if (currentSlot.debugInfo.location[pc].isBreakPoint) + if (currentSlot.debugInfo.location.length > pc && currentSlot.debugInfo.location[pc].isBreakPoint) { //TODO:まともにする writefln("break point\nslot:%d,pc:%d,line:%d", currentSlotNumber, pc, currentSlot.debugInfo.location[pc].location.line);