Skip to content

[CODE] CS2620 on server & client in ivscript.h #486

@DraseraS

Description

@DraseraS

Describe the bug

When i'm trying to compile client or server project i getting CS2620 for m_ang and m_vec in ivscript.h file
in ScriptVariantTemporaryStorage_t union.

Steps to reproduce

Steps to reproduce the behavior:

  1. clone repository with git (or download as .zip)
  2. compile client or server project with visual studio 2013
  3. get error CS2620

Expected behavior

Compilation without any errors

Additional context

Using windows 11 and compiling with visual studio 2013 update v5 ( i tried to compile it with vs2022 but it gave me the same errors)

Errors that vs2013 gave me:
ScriptVariantTemporaryStorage_t::m_ang: illegal union member; type 'QAngle' has a user-defined constructor or non-trivial default constructor

ScriptVariantTemporaryStorage_t::m_vec: illegal union member; type 'Vector' has a user-defined constructor or non-trivial default constructor

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions