Skip to content

Game crashes when reloading scripts after changing PresetName with Lua #20

@comradeshook

Description

@comradeshook

After having changed the PresetName of any MO via Lua, reloading scripts with F2 causes an immediate crash.

To Reproduce

  1. Run the following in console: local gun = CreateHDFirearm("Pistol") MovableMan:AddMO(gun) gun.PresetName = "Foo"
  2. Press F2 to reload scripts
  3. Game crashes

Expected behavior
... The game is not expected to crash. :V

Screenshots
This is the error thrown, as seen in VS.
image

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