mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-27 07:44:31 +02:00
Fix annoying warning. Bye.
This commit is contained in:
parent
37ab72b60f
commit
ad222e642d
@ -130,7 +130,7 @@ Public Class TextureManager
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function GetTexture(ByVal Texture As Texture2D, ByVal Rectangle As Rectangle, Optional ByVal Factor As Integer = 1) As Texture2D
|
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
|
If TextureRectList.TryGetValue(New KeyValuePair(Of Int32, Rectangle)(Texture.GetHashCode(), Rectangle), tex) then
|
||||||
Return tex
|
Return tex
|
||||||
|
Loading…
x
Reference in New Issue
Block a user