From 04fac1cff77e058ad5695d094c7aa2ec63dc1a33 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Mon, 12 Jan 2026 14:24:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BE=B9=E7=95=8C=E6=83=85?= =?UTF-8?q?=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scripts/bgi/bp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/bgi/bp.rs b/src/scripts/bgi/bp.rs index 04ef852..2906536 100644 --- a/src/scripts/bgi/bp.rs +++ b/src/scripts/bgi/bp.rs @@ -106,7 +106,7 @@ impl BGIBpScript { let text_address = reader.pos + text_offset as usize - 1; if text_address >= last_instr_pos && text_address < reader.data.len() - && (text_address == last_instr_pos || reader.data[text_address - 1] == 0) + && (text_address <= last_instr_pos + 1 || reader.data[text_address - 1] == 0) { strings.push(BpString { offset_pos: reader.pos,