Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Strange code when creating ships #479

@Hammie

Description

@Hammie

When executing MSG_SHIP_CREATE the following bit of code is getting run:

if (pAP && pAP->GetAttributeAsDword("index", -1) >= 0)
{
auto pVDat = static_cast<VDATA *>(core.GetScriptVariable("Characters"));
if (pVDat)
pVDat->Set(GetId(), pAP->GetAttributeAsDword("index", 0));
}

Which appears to be replacing the entry for the character data with the character index?!?

Anyone has any idea why or how this is ever needed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions