summaryrefslogtreecommitdiff
path: root/src/engine/editor
diff options
context:
space:
mode:
authorAlessio Tosto <rinnegatamante@gmail.com>2026-05-01 23:20:21 +0200
committerGitHub <noreply@github.com>2026-05-01 23:20:21 +0200
commit7b2879029087bb7bafc3880550caf0fd3319a0d7 (patch)
treebd64f9920da09d5fb67646a98bb6da44eca61679 /src/engine/editor
parent10f10f17e609d4ee218744029effcfb47b97a481 (diff)
Force type correctness when calculating collision hashes (#696)
* Force type correctness when calculating collision hashes * Fix more incorrect hash calculations. * fix an error --------- Co-authored-by: coco875 <59367621+coco875@users.noreply.github.com>
Diffstat (limited to 'src/engine/editor')
-rw-r--r--src/engine/editor/Collision.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/editor/Collision.cpp b/src/engine/editor/Collision.cpp
index d872963d1..9ded514d6 100644
--- a/src/engine/editor/Collision.cpp
+++ b/src/engine/editor/Collision.cpp
@@ -37,7 +37,7 @@ namespace TrackEditor {
break;
case G_DL_OTR_HASH:
ptr++;
- GenerateCollisionMesh(object, (Gfx*)ResourceGetDataByCrc(((uint64_t)(ptr->words.w0 << 32)) + ptr->words.w1), scale);
+ GenerateCollisionMesh(object, (Gfx*)ResourceGetDataByCrc(((uint64_t)(ptr->words.w0) << 32) + ptr->words.w1), scale);
break;
case G_DL_OTR_FILEPATH:
// printf("otr filepath: %s\n", (const char*)hi);
@@ -48,7 +48,7 @@ namespace TrackEditor {
break;
case G_VTX_OTR_HASH: {
ptr++;
- vtx = (Vtx*)ResourceGetDataByCrc(((uint64_t)(ptr->words.w0 << 32)) + ptr->words.w1);
+ vtx = (Vtx*)ResourceGetDataByCrc(((uint64_t)(ptr->words.w0) << 32) + ptr->words.w1);
break;
}
case G_VTX_OTR_FILEPATH: {