aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/create_kyradat/create_kyradat.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/create_kyradat/create_kyradat.cpp b/tools/create_kyradat/create_kyradat.cpp
index 80679d45e7..9a6c201501 100644
--- a/tools/create_kyradat/create_kyradat.cpp
+++ b/tools/create_kyradat/create_kyradat.cpp
@@ -479,11 +479,13 @@ bool extractStrings(PAKFile &out, const Game *g, const byte *data, const uint32
}
if (fmtPatch == 2) {
- if (g->special == kFMTownsVersionE)
+ if (g->special == kFMTownsVersionE) {
targetsize--;
- if (g->special == kFMTownsVersionJ)
+ entries += 1;
+ } else if (g->special == kFMTownsVersionJ) {
targetsize += 2;
- entries += (g->special - 1);
+ entries += 2;
+ }
}
if (fmtPatch == 3) {