diff --git a/src/emitter.cpp b/src/emitter.cpp index 3e9cb91..5e27603 100644 --- a/src/emitter.cpp +++ b/src/emitter.cpp @@ -185,12 +185,17 @@ void emitAttributes(PtContext &ctx, std::ostream &out, std::unordered_map(attributeValue >> 8); } else if (ctx.targetBaseGame == TargetBaseGame::FIRERED) { - // TODO : behaviorReverseMap.at() will throw if the map was empty... pt_logln( ctx, stderr, "emitted {}-format metatile {} attribute: [ behavior={}, encounterType={}, terrainType={}, layerType={} ]", - targetBaseGameString(ctx.targetBaseGame), i / delta, - behaviorReverseMap.at(assignment.attributes.metatileBehavior), + targetBaseGameString(ctx.targetBaseGame), i / delta, behaviorString, encounterTypeString(assignment.attributes.encounterType), terrainTypeString(assignment.attributes.terrainType), layerTypeString(assignment.attributes.layerType)); // TODO : does this code work as expected on a big-endian machine? I think so...