Skip to content

[Bug]: "Regression" in ReferenceToIndex after #1323 #2291

@jensewe

Description

@jensewe

Prerequisites

  • I have checked that my issue doesn't exist yet in the issue tracker

Operating System and Version

WSL Ubuntu 22.04

Game / AppID and Version

L4D2 (550) version 2.2.4.3

SourceMod Version

1.13.0.7199

Metamod:Source Version

No response

Version Verification

Updated SourceMod Version

No response

Updated Metamod:Source Version

No response

Description

Similar to #2260.

Some functions rely on ReferenceToIndex to retrieve client indices, and thus an error per a client during connection.

Steps to Reproduce

#include <sourcemod>

public void OnClientConnected(int client)
{
    int ref = EntRefToEntIndex(client);
    PrintToServer("OnClientConnected %d -> %X", client, ref);
}

Relevant Log Output

OnClientConnected 1 -> FFFFFFFF

Metadata

Metadata

Assignees

No one assigned

    Labels

    Buggeneral bugs; can be anything

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions