Skip to content

fix: Pass targets by const&; call monster.getMonsterType - #893

Merged
jprzimba merged 1 commit into
mainfrom
apply-extensions
Aug 11, 2026
Merged

fix: Pass targets by const&; call monster.getMonsterType#893
jprzimba merged 1 commit into
mainfrom
apply-extensions

Conversation

@jprzimba

@jprzimba jprzimba commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

Avoid copying the targets vector by passing it as a const reference. Also retrieve the monster type directly from the Monster instance (targetMonster->getMonsterType()) instead of using g_monsters().getMonsterType(name). Improves performance and clarity.

Avoid copying the targets vector by passing it as a const reference. Also retrieve the monster type directly from the Monster instance (targetMonster->getMonsterType()) instead of using g_monsters().getMonsterType(name). Improves performance and clarity.
@jprzimba
jprzimba merged commit ad5510a into main Aug 11, 2026
22 checks passed
@jprzimba
jprzimba deleted the apply-extensions branch August 11, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant