diff --git a/apps/openmw-mp/Script/Functions/Cells.cpp b/apps/openmw-mp/Script/Functions/Cells.cpp index 55087822b..515054b56 100644 --- a/apps/openmw-mp/Script/Functions/Cells.cpp +++ b/apps/openmw-mp/Script/Functions/Cells.cpp @@ -27,7 +27,7 @@ const char *CellFunctions::GetCellStateDescription(unsigned short pid, unsigned string cellDescription = player->cellStateChanges.cells.at(i).getDescription(); static vector cstrDescription; - cstrDescription.reserve(cellDescription.size()); + cstrDescription.reserve(cellDescription.size() + 1); strncpy(&cstrDescription[0], cellDescription.c_str(), cstrDescription.capacity()); return &cstrDescription[0];