Skip to content

Commit

Permalink
fix(build): clang build
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Jan 14, 2024
1 parent 1d21d4f commit cfec435
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions include/zenkit-capi/vobs/Trigger.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ ZKC_API void ZkTrigger_setDamageThreshold(ZkTrigger* slf, float damageThreshold)
ZKC_API float ZkTrigger_getFireDelaySeconds(ZkTrigger const* slf);
ZKC_API void ZkTrigger_setFireDelaySeconds(ZkTrigger* slf, float fireDelaySeconds);

ZKC_API ZkBool ZkTrigger_getNextTimeTriggerable(ZkTrigger const* slf);
ZKC_API float ZkTrigger_getNextTimeTriggerable(ZkTrigger const* slf);
ZKC_API ZkVirtualObject* ZkTrigger_getOtherVob(ZkTrigger const* slf);
ZKC_API int ZkTrigger_getCountCanBeActivated(ZkTrigger const* slf);
ZKC_API ZkBool ZkTrigger_getIsEnabled(ZkTrigger const* slf);

ZKC_API void ZkTrigger_setNextTimeTriggerable(ZkTrigger* slf, ZkBool nextTimeTriggerable);
ZKC_API void ZkTrigger_setNextTimeTriggerable(ZkTrigger* slf, float nextTimeTriggerable);
ZKC_API void ZkTrigger_setOtherVob(ZkTrigger* slf, ZkVirtualObject* otherVob);
ZKC_API void ZkTrigger_setCountCanBeActivated(ZkTrigger* slf, int countCanBeActivated);
ZKC_API void ZkTrigger_setIsEnabled(ZkTrigger* slf, ZkBool isEnabled);
Expand Down
8 changes: 4 additions & 4 deletions src/vobs/Misc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ void ZkNpc_removeOverlay(ZkNpc* slf, ZkSize i) {
ZKC_TRACE_FN();
ZKC_CHECK_NULLV(slf);
ZKC_CHECK_LENV(SLF->overlays, i);
SLF->overlays.erase(SLF->overlays.begin() + i);
SLF->overlays.erase(SLF->overlays.begin() + static_cast<long>(i));
}

void ZkNpc_setOverlay(ZkNpc* slf, ZkSize i, ZkString overlay) {
Expand Down Expand Up @@ -1149,7 +1149,7 @@ void ZkNpc_removeTalent(ZkNpc* slf, ZkSize i) {
ZKC_TRACE_FN();
ZKC_CHECK_NULLV(slf);
ZKC_CHECK_LENV(SLF->talents, i);
SLF->talents.erase(SLF->talents.begin() + i);
SLF->talents.erase(SLF->talents.begin() + static_cast<long>(i));
}

void ZkNpc_setTalent(ZkNpc* slf, ZkSize i, ZkNpcTalent* talent) {
Expand Down Expand Up @@ -1188,7 +1188,7 @@ void ZkNpc_removeItem(ZkNpc* slf, ZkSize i) {
ZKC_TRACE_FN();
ZKC_CHECK_NULLV(slf);
ZKC_CHECK_LENV(SLF->items, i);
SLF->items.erase(SLF->items.begin() + i);
SLF->items.erase(SLF->items.begin() + static_cast<long>(i));
}

void ZkNpc_setItem(ZkNpc* slf, ZkSize i, ZkItem* item) {
Expand Down Expand Up @@ -1227,7 +1227,7 @@ void ZkNpc_removeSlot(ZkNpc* slf, ZkSize i) {
ZKC_TRACE_FN();
ZKC_CHECK_NULLV(slf);
ZKC_CHECK_LENV(SLF->slots, i);
SLF->slots.erase(SLF->slots.begin() + i);
SLF->slots.erase(SLF->slots.begin() + static_cast<long>(i));
}

ZkNpcSlot* ZkNpc_addSlot(ZkNpc* slf) {
Expand Down
2 changes: 1 addition & 1 deletion src/vobs/MovableObject.cc
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ void ZkContainer_removeItem(ZkContainer const* slf, ZkSize i) {
ZKC_TRACE_FN();
ZKC_CHECK_NULLV(slf);
ZKC_CHECK_LENV(SLF->s_items, i);
SLF->s_items.erase(SLF->s_items.begin() + i);
SLF->s_items.erase(SLF->s_items.begin() + static_cast<long>(i));
}

ZKC_VOB_LOADER(ZkDoor)
Expand Down
4 changes: 2 additions & 2 deletions src/vobs/Trigger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ void ZkTrigger_setFireDelaySeconds(ZkTrigger* slf, float fireDelaySeconds) {
SLF->fire_delay_sec = fireDelaySeconds;
}

ZkBool ZkTrigger_getNextTimeTriggerable(ZkTrigger const* slf) {
float ZkTrigger_getNextTimeTriggerable(ZkTrigger const* slf) {
ZKC_TRACE_FN();
ZKC_CHECK_NULL(slf);
return SLF->s_next_time_triggerable;
Expand All @@ -199,7 +199,7 @@ ZkBool ZkTrigger_getIsEnabled(ZkTrigger const* slf) {
return SLF->s_is_enabled;
}

void ZkTrigger_setNextTimeTriggerable(ZkTrigger* slf, ZkBool nextTimeTriggerable) {
void ZkTrigger_setNextTimeTriggerable(ZkTrigger* slf, float nextTimeTriggerable) {
ZKC_TRACE_FN();
ZKC_CHECK_NULLV(slf);
SLF->s_next_time_triggerable = nextTimeTriggerable;
Expand Down

0 comments on commit cfec435

Please sign in to comment.