Map the module id correctly.

This commit is contained in:
Jonathan Naylor
2017-10-02 12:51:26 +01:00
parent 96af932497
commit 40b8d32f84

View File

@@ -141,6 +141,9 @@ void CVoice::linkedTo(unsigned int number, unsigned int room)
words.push_back(std::string(1U, letters[1U]));
words.push_back(std::string(1U, letters[2U]));
// 4001 => 1 => A, 4002 => 2 => B, etc.
room %= 100U;
if (room >= 1U && room <= 26U)
words.push_back(std::string(1U, 'A' + room - 1U));