diff --git a/libultraship/libultraship/Window.cpp b/libultraship/libultraship/Window.cpp index 588e3af50..6cb43b465 100644 --- a/libultraship/libultraship/Window.cpp +++ b/libultraship/libultraship/Window.cpp @@ -122,7 +122,7 @@ extern "C" { char* ResourceMgr_GetNameByCRC(uint64_t crc, char* alloc) { std::string hashStr = Ship::GlobalCtx2::GetInstance()->GetResourceManager()->HashToString(crc); strcpy(alloc, hashStr.c_str()); - return (char*)hashStr.c_str(); + return alloc; } Vtx* ResourceMgr_LoadVtxByCRC(uint64_t crc) {