Fix UBSAN warning when starting the jetski race (#263)

This commit is contained in:
Anonymous Maarten 2025-06-09 00:14:47 +02:00 committed by GitHub
parent f3a4d8fcb5
commit 59105d74f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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();