Minor code change for CharacterState

This commit is contained in:
Vladislav Khorev committed 2026-06-18 20:22:25 +03:00
1 parent 0eb9d0be25
commit 0ca00f965d
3 files changed
+62 -80

No files matched your search

+1 -1
View File
@@ -108,7 +108,7 @@ namespace ZL
// Load NPCs from JSON. Aggressive (canAttack) NPCs need a player target
// and hit sparks; peaceful NPCs don't take damage from the player so
// they don't need either.
npcs = GameObjectLoader::loadAndCreate_Npcs(params.npcsJsonPath, CONST_ZIP_FILE);
npcs = GameObjectLoader::loadAndCreate_Npcs(params.npcsJsonPath, renderer, CONST_ZIP_FILE);
for (auto& npc : npcs) {
if (!npc) continue;
npc->state.homePosition = Eigen::Vector3f(npc->state.position.x(), 0.f, npc->state.position.z());