• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Game Feedback
  • /ARGF-167
Back
3

SCR_CharacterControllerComponent::IsUsingBinoculars() can cause NULL exception

General
3

State

Assigned
Issue key
ARGF-167
Access
Public
Space
Arma Reforger
Project
Game Feedback
Creator
jamie
Created
Jul 1, 2026
Views
126
Platform
PC
Game Version
1.7.0.54
Mission
—
Is it modded?
—
Description

SCR_CharacterControllerComponent::IsUsingBinoculars() method may cause "NULL pointer to instance exception" due to calling SCR_PlayerController::GetIsBinocularsZoomed() on SCR_PlayerController.s_pLocalPlayerController before the static member reference is initialized.


Vanilla script code checks for the use of binoculars by doing SCR_PlayerController.s_pLocalPlayerController && SCR_PlayerController.s_pLocalPlayerController.GetIsBinocularsZoomed() anyways, so the function can be replaced with

	override bool IsUsingBinoculars()
	{
		return SCR_PlayerController.s_pLocalPlayerController && SCR_PlayerController.s_pLocalPlayerController.GetIsBinocularsZoomed();
	}
Reactions

Activity

    3 months ago
  • jamie
    created issue3 months ago
  • jamie
    changed3 months ago
  • l909
    changed state to
    ASSIGNED
    3 months ago

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

State

Assigned
Issue key
ARGF-167
Access
Public
Space
Arma Reforger
Project
Game Feedback
Creator
jamie
Created
Jul 1, 2026
Views
126