1
0
Fork 0

Fix: [Script] "type" std function might be redefined by scripts

pull/13686/head
glx22 2025-03-01 22:02:20 +01:00
parent 170002ff7e
commit 5902fcebd7
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;
}
}

View File

@ -12,8 +12,8 @@ GSBridge.GetBridgeID <- GSBridge.GetBridgeType;
class GSCompat14 {
function Text(text)
{
if (type(text) == "string") return text;
if (type(text) == "instance" && text instanceof GSText) return text;
if (typeof text == "string") return text;
if (typeof text == "instance" && text instanceof GSText) return text;
return null;
}
}