From 6104827890e0bbe814e04cd29b21979b35f45718 Mon Sep 17 00:00:00 2001 From: Reinder Feenstra Date: Tue, 22 Mar 2022 23:26:00 +0100 Subject: [PATCH] fix: lua script wasn't started when state was running on wolrd load --- server/src/lua/script.cpp | 10 +++++++++- server/src/lua/script.hpp | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/server/src/lua/script.cpp b/server/src/lua/script.cpp index 3ca1e8bc..63e97346 100644 --- a/server/src/lua/script.cpp +++ b/server/src/lua/script.cpp @@ -3,7 +3,7 @@ * * This file is part of the traintastic source code. * - * Copyright (C) 2019-2021 Reinder Feenstra + * Copyright (C) 2019-2022 Reinder Feenstra * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -109,6 +109,14 @@ void Script::addToWorld() m_world.luaScripts->addObject(shared_ptr