Skip to content

Commit

Permalink
Fix a crash when cursor is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender authored and pchote committed Jan 5, 2020
1 parent 7e9a3d3 commit e33cf8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Game/Graphics/HardwareCursor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void Update()

public void Render(Renderer renderer)
{
if (cursor.Name == null || !isLocked)
if (cursor == null || !isLocked)
return;

var cursorSequence = cursorProvider.GetCursorSequence(cursor.Name);
Expand Down

0 comments on commit e33cf8a

Please sign in to comment.