1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-22 11:44:17 +01:00

Add: [Script] Function to get all rail types of an rail engine.

This commit is contained in:
Michael Lutz
2025-06-13 21:20:29 +02:00
parent 1779da51c2
commit 313c6c45aa
7 changed files with 40 additions and 4 deletions

View File

@@ -270,7 +270,7 @@ void Squirrel::AddMethod(std::string_view method_name, SQFUNCTION proc, std::str
sq_newslot(this->vm, -3, SQFalse);
}
void Squirrel::AddConst(std::string_view var_name, int value)
void Squirrel::AddConst(std::string_view var_name, SQInteger value)
{
ScriptAllocatorScope alloc_scope(this);