Check for null _localisations.
This commit is contained in:
@@ -46567,6 +46567,11 @@ public class NpcStringId
|
||||
|
||||
public NSLocalisation getLocalisation(String lang)
|
||||
{
|
||||
if (_localisations == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
NSLocalisation nsl;
|
||||
for (int i = _localisations.length; i-- > 0;)
|
||||
{
|
||||
@@ -46576,6 +46581,7 @@ public class NpcStringId
|
||||
return nsl;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@@ -19826,6 +19826,11 @@ public class SystemMessageId
|
||||
|
||||
public SMLocalisation getLocalisation(String lang)
|
||||
{
|
||||
if (_localisations == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
SMLocalisation sml;
|
||||
for (int i = _localisations.length; i-- > 0;)
|
||||
{
|
||||
@@ -19835,6 +19840,7 @@ public class SystemMessageId
|
||||
return sml;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user