mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 22:23:04 +00:00
parent
343b29a651
commit
4b79ef5ebe
@ -474,7 +474,7 @@ namespace Godot
|
||||
int source = 0;
|
||||
int target = 0;
|
||||
|
||||
while (instance[source] != 0 && text[target] != 0)
|
||||
while (source < len && target < text.Length)
|
||||
{
|
||||
bool match;
|
||||
|
||||
@ -491,7 +491,7 @@ namespace Godot
|
||||
if (match)
|
||||
{
|
||||
source++;
|
||||
if (instance[source] == 0)
|
||||
if (source >= len)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user