Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ToxicKevinFerm committed Mar 1, 2024
1 parent ee2e399 commit 64975db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/core/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ func (item *Item) ToItemSpecProto() *proto.ItemSpec {
}

// Check if Reforging is not nil before accessing ID
// The idea here is to convert a reforging ID to sim stats
if item.Reforging != nil {
itemSpec.Reforging = item.Reforging.ID
} else {
// Explicitly set to 0 if Reforging is nil, for clarity (optional as zero value is default)
itemSpec.Reforging = 0
}

Expand Down

0 comments on commit 64975db

Please sign in to comment.