[Server] Fix crash caused by setting too many WorldObject refIds

This commit is contained in:
David Cernat 2017-01-30 09:10:33 +02:00
parent da2f66d6ba
commit fe9e30a4d8

View file

@ -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