1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 12:39:11 +00:00

Fix: [Script] "type" std function might be redefined by scripts (#13686)

This commit is contained in:
Loïc Guilloux
2025-03-01 23:01:13 +01:00
committed by GitHub
parent 170002ff7e
commit a772df4a99
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ AIBridge.GetBridgeID <- AIBridge.GetBridgeType;
class AICompat14 {
function Text(text)
{
if (type(text) == "string") return text;
if (typeof text == "string") return text;
return null;
}
}