Check for null _localisations.

This commit is contained in:
MobiusDevelopment
2022-12-10 16:58:49 +00:00
parent bba8642e8c
commit dda1b85e01
58 changed files with 348 additions and 0 deletions

View File

@@ -38173,6 +38173,11 @@ public class NpcStringId
public NSLocalisation getLocalisation(String lang)
{
if (_localisations == null)
{
return null;
}
NSLocalisation nsl;
for (int i = _localisations.length; i-- > 0;)
{
@@ -38182,6 +38187,7 @@ public class NpcStringId
return nsl;
}
}
return null;
}

View File

@@ -16058,6 +16058,11 @@ public class SystemMessageId
public SMLocalisation getLocalisation(String lang)
{
if (_localisations == null)
{
return null;
}
SMLocalisation sml;
for (int i = _localisations.length; i-- > 0;)
{
@@ -16067,6 +16072,7 @@ public class SystemMessageId
return sml;
}
}
return null;
}