From fe9e30a4d85e05930b46f8e8ed456d3db2db5657 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Mon, 30 Jan 2017 09:10:33 +0200 Subject: [PATCH] [Server] Fix crash caused by setting too many WorldObject refIds --- apps/openmw-mp/Script/Functions/World.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw-mp/Script/Functions/World.cpp b/apps/openmw-mp/Script/Functions/World.cpp index b9d901777..70d5b840c 100644 --- a/apps/openmw-mp/Script/Functions/World.cpp +++ b/apps/openmw-mp/Script/Functions/World.cpp @@ -59,7 +59,7 @@ void WorldFunctions::SetWorldEventCell(const char* cellDescription) noexcept void WorldFunctions::SetObjectRefId(unsigned int i, const char* refId) noexcept { - worldEvent->objectChanges.objects[i].refId = refId; + worldEvent->objectChanges.objects[i].refId = std::string(refId); } void WorldFunctions::SetObjectRefNumIndex(unsigned int i, int refNumIndex) noexcept