Fix UBSAN warning when starting the jetski race

This commit is contained in:
Anonymous Maarten 2025-06-09 00:10:24 +02:00
parent f3a4d8fcb5
commit 26fbd68eec

View File

@ -91,7 +91,7 @@ MxResult LegoPartPresenter::Read(MxDSChunk& p_chunk)
SDL_strlwr(textureName);
if (textureName[0] == '^') {
strcpy(textureName, textureName + 1);
memmove(textureName, textureName + 1, strlen(textureName + 1));
if (g_partPresenterConfig1) {
texture = new LegoTexture();