[Scummvm-git-logs] scummvm master -> 25b3ee430c790f09f7e71375af31aaba33845ba3

mduggan noreply at scummvm.org
Mon Feb 20 10:07:48 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
25b3ee430c TETRAEDGE: Fix build on platforms without ushort


Commit: 25b3ee430c790f09f7e71375af31aaba33845ba3
    https://github.com/scummvm/scummvm/commit/25b3ee430c790f09f7e71375af31aaba33845ba3
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2023-02-20T19:07:41+09:00

Commit Message:
TETRAEDGE: Fix build on platforms without ushort

Changed paths:
    engines/tetraedge/te/te_model.cpp


diff --git a/engines/tetraedge/te/te_model.cpp b/engines/tetraedge/te/te_model.cpp
index da2a2d24b16..6b12919a2a5 100644
--- a/engines/tetraedge/te/te_model.cpp
+++ b/engines/tetraedge/te/te_model.cpp
@@ -140,8 +140,8 @@ TeTRS TeModel::getBone(TeIntrusivePtr<TeModelAnimation> anim, uint num) {
 void TeModel::invertNormals() {
 	for (auto mesh : meshes()) {
 		for (uint i = 0; i < mesh->numIndexes() / 3; i++) {
-			ushort idx0 = mesh->index(i);
-			ushort idx2 = mesh->index(i + 2);
+			uint idx0 = mesh->index(i);
+			uint idx2 = mesh->index(i + 2);
 			mesh->setIndex(i, idx2);
 			mesh->setIndex(i, idx0);
 		}




More information about the Scummvm-git-logs mailing list