diff --git a/src/OpenRpg.Core/Variables/DefaultKeyedVariables.cs b/src/OpenRpg.Core/Variables/DefaultKeyedVariables.cs index 50ab520..c1b99f0 100644 --- a/src/OpenRpg.Core/Variables/DefaultKeyedVariables.cs +++ b/src/OpenRpg.Core/Variables/DefaultKeyedVariables.cs @@ -35,7 +35,7 @@ public T this[K index] } } - public T GetVariable(K key) => ContainsKey(key) ? InternalVariables[key] : default; + public T GetVariable(K key) => ContainsKey(key) ? InternalVariables[key] : default(T); public void AddVariable(K key, T value) {