Fix annoying warning. Bye.

This commit is contained in:
jianmingyong 2017-02-15 10:41:52 +08:00
parent 37ab72b60f
commit ad222e642d
1 changed files with 2 additions and 2 deletions

View File

@ -130,8 +130,8 @@ Public Class TextureManager
End Function
Public Shared Function GetTexture(ByVal Texture As Texture2D, ByVal Rectangle As Rectangle, Optional ByVal Factor As Integer = 1) As Texture2D
Dim tex As Texture2D
Dim tex As Texture2D = Nothing
If TextureRectList.TryGetValue(New KeyValuePair(Of Int32, Rectangle)(Texture.GetHashCode(), Rectangle), tex) then
Return tex
End If