• Tracker

    Spaces
    Statistics
  • Game Feedback
  • SCR_CharacterControllerComponent::IsUsingBinoculars() can cause NULL exception
Back

3

SCR_CharacterControllerComponent::IsUsingBinoculars() can cause NULL exception

General

Issue Key

ARGF-167

State

Assigned

Access

Public

Group

Arma Reforger

Project

Game Feedback

Creator

jamie

Created

Jul 1, 2026

Views

67

Attachments

No attachments

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();
	}

Activity

    about 2 months ago

  • jamie
    created issueabout 2 months ago
  • jamie
    changedabout 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.

Issue Key

ARGF-167

State

Assigned

Access

Public

Group

Arma Reforger

Project

Game Feedback

Creator

jamie

Created

Jul 1, 2026

Views

67

Attachments

No attachments