1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-16 17:02:37 +01:00

Codechange: Get/pass engine by reference instead of pointer.

This commit is contained in:
Peter Nelson
2025-07-14 17:01:42 +01:00
committed by Peter Nelson
parent 7ff0c67f77
commit 55098a2f2e
6 changed files with 16 additions and 16 deletions

View File

@@ -536,7 +536,7 @@ void Squirrel::Initialize()
sq_setforeignptr(this->vm, this);
sq_pushroottable(this->vm);
squirrel_register_global_std(this);
squirrel_register_global_std(*this);
/* Set consts table as delegate of root table, so consts/enums defined via require() are accessible */
sq_pushconsttable(this->vm);