Fixed compilation warning when building with OS X 10.11 SDK

The warning was 'null passed to a callee that requires a non-null argument'
This commit is contained in:
alexey.lysiuk 2015-12-29 15:14:41 +02:00
parent 2c3d9e3ab8
commit 673e1b4faf

View file

@ -1219,7 +1219,7 @@ bool I_SetCursor(FTexture* cursorpic)
// Create image from representation and set it as cursor // Create image from representation and set it as cursor
NSData* imageData = [bitmapImageRep representationUsingType:NSPNGFileType NSData* imageData = [bitmapImageRep representationUsingType:NSPNGFileType
properties:nil]; properties:[NSDictionary dictionary]];
NSImage* cursorImage = [[NSImage alloc] initWithData:imageData]; NSImage* cursorImage = [[NSImage alloc] initWithData:imageData];
cursor = [[NSCursor alloc] initWithImage:cursorImage cursor = [[NSCursor alloc] initWithImage:cursorImage