Fix a crash when cursor is null.
This commit is contained in:
committed by
Paul Chote
parent
7e9a3d3bc9
commit
e33cf8a8ae
@@ -151,7 +151,7 @@ namespace OpenRA.Graphics
|
||||
|
||||
public void Render(Renderer renderer)
|
||||
{
|
||||
if (cursor.Name == null || !isLocked)
|
||||
if (cursor == null || !isLocked)
|
||||
return;
|
||||
|
||||
var cursorSequence = cursorProvider.GetCursorSequence(cursor.Name);
|
||||
|
||||
Reference in New Issue
Block a user