mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-19 12:39:11 +00:00
Revert d7bd67cda3
: [Scripts] "_typeof" metamethod negatively affects old scripts
This commit is contained in:
@@ -12,8 +12,8 @@ AIBridge.GetBridgeID <- AIBridge.GetBridgeType;
|
||||
class AICompat14 {
|
||||
function Text(text)
|
||||
{
|
||||
if (typeof(text) != "string") return null;
|
||||
return text;
|
||||
if (type(text) == "string") return text;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user