diff --git a/engines/tetraedge/te/te_free_move_zone.cpp b/engines/tetraedge/te/te_free_move_zone.cpp index 96286d61579..6ba82cfadee 100644 --- a/engines/tetraedge/te/te_free_move_zone.cpp +++ b/engines/tetraedge/te/te_free_move_zone.cpp @@ -221,8 +221,8 @@ TeIntrusivePtr TeFreeMoveZone::curve(const TeVector3f32 &startpt, Common::Array pts3d; // Skip first and last points, we will use the exact values. - for (uint i = 1; i < points.size() - 1; i++) { - pts3d.push_back(transformAStarGridInWorldSpace(points[i])); + for (uint j = 1; j < points.size() - 1; j++) { + pts3d.push_back(transformAStarGridInWorldSpace(points[j])); } pts3d.front() = startpt; diff --git a/engines/tetraedge/te/te_i_text_layout.h b/engines/tetraedge/te/te_i_text_layout.h index f311a8bff59..1498a5e84c7 100644 --- a/engines/tetraedge/te/te_i_text_layout.h +++ b/engines/tetraedge/te/te_i_text_layout.h @@ -30,6 +30,7 @@ namespace Tetraedge { class TeITextLayout { public: TeITextLayout(); + virtual ~TeITextLayout() {} virtual void setText(const Common::String &val) = 0; virtual void setInterLine(float val) = 0;