OOps wrong logic

This commit is contained in:
bigguy345 committed 2026-01-04 01:49:01 +02:00
1 parent bf858a7a1a
commit a4112008bd
1 file changed
+1 -1
@@ -384,7 +384,7 @@ public class GuiScriptInterface extends GuiNPCInterface implements GuiYesNoCallb
private GuiScriptTextArea getActiveScriptArea() {
if (this.activeTab > 0) {
int idx = this.activeTab - 1;
if (idx >= 0 && idx < textAreas.size())
if (textAreas.containsKey(idx))
return textAreas.get(idx);
}
return null;