From 695d436a97410ce83f6e80f868242077e5343e0b Mon Sep 17 00:00:00 2001 From: FynnTW Date: Thu, 26 Dec 2024 13:01:57 +0200 Subject: [PATCH] Update onlineThings2.cpp --- M2TWEOP Code/M2TWEOP library/onlineThings2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/M2TWEOP Code/M2TWEOP library/onlineThings2.cpp b/M2TWEOP Code/M2TWEOP library/onlineThings2.cpp index 02536d8f..77d71728 100644 --- a/M2TWEOP Code/M2TWEOP library/onlineThings2.cpp +++ b/M2TWEOP Code/M2TWEOP library/onlineThings2.cpp @@ -141,7 +141,7 @@ namespace battleCreator } genJson["name"] = genName; - int age = (gen->characterRecord->age >> 3) & 0x7f; + int age = gen->characterRecord->getAge(); genJson["index"] = gen->characterRecord->index; genJson["age"] = age; genJson["faction"] = gen->characterRecord->faction->factionRecord->facName;