mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
Re-write of AI and Utils Java classes... and some adjustments to obj_id class as well.
This commit is contained in:
Regular → Executable
+2
-12
@@ -264,22 +264,12 @@ public final class obj_id implements Comparable, Serializable
|
||||
|
||||
public boolean hasScriptDictionary(Object key)
|
||||
{
|
||||
boolean result = false;
|
||||
if (scriptDictionary != null)
|
||||
{
|
||||
result = scriptDictionary.containsKey(key);
|
||||
}
|
||||
return result;
|
||||
return scriptDictionary != null && scriptDictionary.containsKey(key);
|
||||
}
|
||||
|
||||
public boolean hasScriptVar(Object key)
|
||||
{
|
||||
boolean result = false;
|
||||
if (scriptVars != null)
|
||||
{
|
||||
result = scriptVars.hasKey(key);
|
||||
}
|
||||
return result;
|
||||
return scriptVars != null && scriptVars.hasKey(key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user