1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix segfault on linux when running in verbose mode

Comparing LOG_VERBOSE with other places in code, it expects const char* as parameter.
This commit is contained in:
orbifant
2025-02-12 20:37:51 +01:00
parent 6aa562c571
commit 7672da17c7

View File

@@ -114,7 +114,7 @@ PeepAnimations PeepAnimationsObject::ReadAnimations(const EnumMap<PeepAnimationT
auto& referenceAnim = _animationGroups[0][typeEnum];
if (referenceAnim.imageTableOffset != 0)
{
LOG_VERBOSE("Copying animation '%s' from primary group", typeStr);
LOG_VERBOSE("Copying animation '%s' from primary group", std::string(typeStr).c_str());
std::vector<uint8_t> sequence = referenceAnim.frame_offsets;
group[typeEnum] = {
.imageTableOffset = referenceAnim.imageTableOffset,
@@ -125,7 +125,7 @@ PeepAnimations PeepAnimationsObject::ReadAnimations(const EnumMap<PeepAnimationT
}
// No primary animation bail us out -- error here!
LOG_ERROR("Required animation does not exist: %s", typeStr);
LOG_ERROR("Required animation does not exist: %s", std::string(typeStr).c_str());
continue;
}