portal2 icon indicating copy to clipboard operation
portal2 copied to clipboard

VScript freezing game when leaving map

Open beepster4096 opened this issue 3 years ago • 0 comments

class Class {
    vector1 = null;
    vector2 = null;

    static instances = [];

    constructor() {
        this.vector1 = Vector(0, 0, 0);
        this.vector2 = Vector(0, 0, 0);
    }
}

Class.instances.push(Class());
Class.instances.push(Class());

Running this script and leaving the map will freeze the game.

beepster4096 avatar Jul 09 '22 04:07 beepster4096