We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 997db6d commit 4e85d01Copy full SHA for 4e85d01
1 file changed
engine/Sandbox.Engine/Resources/GameResource.cs
@@ -134,8 +134,9 @@ internal bool PostReloadInternal()
134
internal static GameResource GetPromise( System.Type type, string filename )
135
{
136
var path = FixPath( filename );
137
- var hash = path.FastHash();
+ if ( string.IsNullOrEmpty( path ) ) return default;
138
139
+ var hash = path.FastHash();
140
var obj = Game.Resources.Get( type, hash ) as GameResource;
141
if ( obj != null ) return obj;
142
0 commit comments