mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-14 15:48:06 +03:00
FindDefinition return null if _defMap is null
This commit is contained in:
parent
fdee0bfc1e
commit
6981eb4a73
@ -125,6 +125,9 @@ namespace Steamworks
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static InventoryDef FindDefinition( InventoryDefId defId )
|
public static InventoryDef FindDefinition( InventoryDefId defId )
|
||||||
{
|
{
|
||||||
|
if ( _defMap == null )
|
||||||
|
return null;
|
||||||
|
|
||||||
if ( _defMap.TryGetValue( defId, out var val ) )
|
if ( _defMap.TryGetValue( defId, out var val ) )
|
||||||
return val;
|
return val;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user