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:
committed by
Peter Nelson
parent
7ff0c67f77
commit
55098a2f2e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user