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

coverity_scan^2
David Cernat 8 years ago
parent da2f66d6ba
commit fe9e30a4d8

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

Loading…
Cancel
Save