SFTtech / openage

Free (as in freedom) open source clone of the Age of Empires II engine 🚀
http://openage.dev
Other
12.51k stars 1.11k forks source link

Fix out of bound access in matrix constructor #1570

Closed heinezen closed 9 months ago

heinezen commented 9 months ago

Fixes https://github.com/SFTtech/openage/issues/1568

The previous version calculated the insertion indices incorrectly but the values were still placed at the correct memory addresses. That's why the tests ran through but _GLIBCXX_ASSERTIONS complained.