From 390681e0d0e7453966477bf6ed23c5d85b9e4fbf Mon Sep 17 00:00:00 2001 From: Uleat Date: Mon, 12 Jan 2015 22:26:33 -0500 Subject: [PATCH] Fix for missing names in StringID-based messages --- common/patches/rof.cpp | 2 +- common/patches/rof2.cpp | 2 +- common/patches/sod.cpp | 2 +- common/patches/sof.cpp | 2 +- common/patches/titanium.cpp | 2 +- common/patches/underfoot.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/common/patches/rof.cpp b/common/patches/rof.cpp index 3346a7823..3ec0565bb 100644 --- a/common/patches/rof.cpp +++ b/common/patches/rof.cpp @@ -892,7 +892,7 @@ namespace RoF std::string new_message_array[9]; for (int i = 0; i < 9; ++i) { - if (new_message_array[i].length() == 0) { break; } + if (old_message_array[i].length() == 0) { break; } ServerToRoFTextLink(new_message_array[i], old_message_array[i]); new_message_size += new_message_array[i].length() + 1; } diff --git a/common/patches/rof2.cpp b/common/patches/rof2.cpp index db48d231d..c586fe260 100644 --- a/common/patches/rof2.cpp +++ b/common/patches/rof2.cpp @@ -958,7 +958,7 @@ namespace RoF2 std::string new_message_array[9]; for (int i = 0; i < 9; ++i) { - if (new_message_array[i].length() == 0) { break; } + if (old_message_array[i].length() == 0) { break; } ServerToRoF2TextLink(new_message_array[i], old_message_array[i]); new_message_size += new_message_array[i].length() + 1; } diff --git a/common/patches/sod.cpp b/common/patches/sod.cpp index 7a118abb0..09e219672 100644 --- a/common/patches/sod.cpp +++ b/common/patches/sod.cpp @@ -661,7 +661,7 @@ namespace SoD std::string new_message_array[9]; for (int i = 0; i < 9; ++i) { - if (new_message_array[i].length() == 0) { break; } + if (old_message_array[i].length() == 0) { break; } ServerToSoDTextLink(new_message_array[i], old_message_array[i]); new_message_size += new_message_array[i].length() + 1; } diff --git a/common/patches/sof.cpp b/common/patches/sof.cpp index 8040d2287..07885944a 100644 --- a/common/patches/sof.cpp +++ b/common/patches/sof.cpp @@ -648,7 +648,7 @@ namespace SoF std::string new_message_array[9]; for (int i = 0; i < 9; ++i) { - if (new_message_array[i].length() == 0) { break; } + if (old_message_array[i].length() == 0) { break; } ServerToSoFTextLink(new_message_array[i], old_message_array[i]); new_message_size += new_message_array[i].length() + 1; } diff --git a/common/patches/titanium.cpp b/common/patches/titanium.cpp index 187ac0bdf..9aa8afad8 100644 --- a/common/patches/titanium.cpp +++ b/common/patches/titanium.cpp @@ -507,7 +507,7 @@ namespace Titanium std::string new_message_array[9]; for (int i = 0; i < 9; ++i) { - if (new_message_array[i].length() == 0) { break; } + if (old_message_array[i].length() == 0) { break; } ServerToTitaniumTextLink(new_message_array[i], old_message_array[i]); new_message_size += new_message_array[i].length() + 1; } diff --git a/common/patches/underfoot.cpp b/common/patches/underfoot.cpp index ea31aa68f..ba04ea9a7 100644 --- a/common/patches/underfoot.cpp +++ b/common/patches/underfoot.cpp @@ -805,7 +805,7 @@ namespace Underfoot std::string new_message_array[9]; for (int i = 0; i < 9; ++i) { - if (new_message_array[i].length() == 0) { break; } + if (old_message_array[i].length() == 0) { break; } ServerToUnderfootTextLink(new_message_array[i], old_message_array[i]); new_message_size += new_message_array[i].length() + 1; }