• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Game Feedback
  • /ARGF-632
Back
1

Incorrect check in EditBoxFilterComponent script

1

State

Assigned
Issue key
ARGF-632
Access
Public
Space
Arma Reforger
Project
Game Feedback
Creator
tilw
Created
Sep 19, 2026
Views
117
Platform
PC
Game Version
1.8.0.13
Mission
—
Is it modded?
no
Description
override void HandlerAttached(Widget w)
	{
		super.HandlerAttached(w);
		
		m_wEditBox = EditBoxWidget.Cast(w);
		if (!m_wEditBox)
			m_wMultilineEditBox = MultilineEditBoxWidget.Cast(w);
		
		if (!m_wEditBox || !m_wMultilineEditBox)
		{
			Print("EditBoxFilterComponent used on invalid widget type.", LogLevel.WARNING);
			return;
		}

This code is supposed to check if the handlers widget is either an edit box or a multi line edit box.

if (!m_wEditBox || !m_wMultilineEditBox) should use && instead of ||, because right now it "ensures" it is both an EditBoxWidget and a MultiLineEditBoxWidget (which is impossible) and warns you otherwise.


This also breaks the character blacklist and whitelist, because they follow after the if body - the return statement prevents them from being set up properly.

Reactions

Activity

    about 2 months ago
  • tilw
    created issueabout 2 months ago
  • tilw
    changedabout 2 months ago
  • tilw
    changedabout 2 months ago
  • about 2 months ago
  • tilw
    changedabout 2 months ago
  • tilw
    changed title toIncorrect check in EditBoxFilterComponent scriptabout 2 months ago
  • about 2 months ago
  • l909
    changed state to
    ASSIGNED
    about 2 months ago

You are not signed in. Please sign in to see more details and to reply.

State

Assigned
Issue key
ARGF-632
Access
Public
Space
Arma Reforger
Project
Game Feedback
Creator
tilw
Created
Sep 19, 2026
Views
117