| 820 | #include <Objects/navmeshconnectionobject.h> |
| 821 | |
| 822 | void GetDisplayName(Object* obj, std::vector<char>& buffer) { |
| 823 | char temp[512]; |
| 824 | temp[0] = '\0'; |
| 825 | if (!obj->GetName().empty()) { |
| 826 | sprintf(temp, "%d, ", obj->GetID()); |
| 827 | } |
| 828 | obj->GetDisplayName(temp + strlen(temp), 512); |
| 829 | size_t length = strlen(temp) + 1; |
| 830 | size_t old_size = buffer.size(); |
| 831 | buffer.resize(old_size + length); |
| 832 | memcpy(buffer.data() + old_size, temp, length); |
| 833 | } |
| 834 | |
| 835 | static void PrintConnections(MovementObject* mov, |
| 836 | const char* name, |
no test coverage detected