Fix missing null check

This commit is contained in:
Flamefire committed 2014-09-13 01:22:42 +02:00
1 parent 0796cbaef8
commit 4a068f113e
1 file changed
+2
+2
View File
@@ -303,6 +303,8 @@ namespace Vocaluxe.Lib.Draw
protected TTextureType _GetTexture(CTexture textureRef)
{
if (textureRef == null)
return null;
TTextureType texture;
_Textures.TryGetValue(textureRef.ID, out texture);
return texture;