We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 414d46f commit 640e1a9Copy full SHA for 640e1a9
Intersect.Client.Core/Entities/Resource.cs
@@ -103,6 +103,11 @@ private void ReloadSpriteTexture()
103
Texture = GameContentManager.Current.GetTexture(TextureType.Resource, _sprite);
104
}
105
106
+ if (Texture == default)
107
+ {
108
+ Texture = Graphics.Renderer.WhitePixel;
109
+ }
110
+
111
_recalculateRenderBounds = true;
112
113
@@ -196,8 +201,7 @@ public void UpdateCurrentState()
196
201
);
197
202
198
203
_currentState = currentState.Value;
199
- var updatedSprite = _currentState?.Texture;
200
- _sprite = updatedSprite ?? string.Empty;
204
+ _sprite = _currentState?.Texture ?? string.Empty;
205
ReloadSpriteTexture();
206
207
0 commit comments