summaryrefslogtreecommitdiff
path: root/NW4RTools/ResFile.cs
diff options
context:
space:
mode:
Diffstat (limited to 'NW4RTools/ResFile.cs')
-rw-r--r--NW4RTools/ResFile.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/NW4RTools/ResFile.cs b/NW4RTools/ResFile.cs
index 4f4a1b8..aae0038 100644
--- a/NW4RTools/ResFile.cs
+++ b/NW4RTools/ResFile.cs
@@ -19,7 +19,7 @@ namespace NW4RTools {
}
public ResDict<TValue> GetGroup<TValue>(string name) {
- return this[name] as ResDict<TValue>;
+ return ContainsKey(name) ? (this[name] as ResDict<TValue>) : null;
}