Add check to IDDB bucketing

This commit is contained in:
Matt Nadareski
2024-03-13 10:53:59 -04:00
parent 9de6a1ce2c
commit da8d2ba55b

View File

@@ -239,8 +239,8 @@ namespace SabreTools.DatFiles
/// <returns></returns>
public void UpdateBucketBy(ItemKey bucketBy, bool lower = true, bool norename = true)
{
// If the bucketing value is the same
if (bucketBy == _bucketedBy)
// If the bucketing value is the same or null
if (bucketBy == _bucketedBy || bucketBy == ItemKey.NULL)
return;
// Reset the bucketing values