Skip to content

Commit d65947a

Browse files
Merge pull request #2785 from RedRoryOTheGlen/CustomCloakFix
Added null srcImage check to the other DrawTexture overload.
2 parents 904aa08 + f99cd45 commit d65947a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Assets/Scripts/Game/Utility/PaperDollRenderer.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ public byte GetEquipIndex(int x, int y)
237237

238238
void DrawTexture(ImageData srcImage, DaggerfallUnityItem item = null)
239239
{
240+
if (srcImage.texture == null || srcImage.offset == null)
241+
return;
242+
240243
DrawTexture(
241244
srcImage,
242245
new Rect(0, 0, 1, 1),

0 commit comments

Comments
 (0)