diff --git a/src/components/gui/core/GUICanvas.ts b/src/components/gui/core/GUICanvas.ts index 62cd3e33..a3c74d17 100644 --- a/src/components/gui/core/GUICanvas.ts +++ b/src/components/gui/core/GUICanvas.ts @@ -38,7 +38,7 @@ export class GUICanvas extends ComponentBase { } public copyComponent(from: this): this { - from.index = from.index; + this.index = from.index; return this; } }