BlindMindStudios / StarRuler2-Source

4X Space Strategy game Star Ruler 2's open source distribution.
http://starruler2.com
Other
1.46k stars 246 forks source link

Fix for "front() called on empty vector" Errors on debug builds. #51

Closed Michael-Phoenix closed 6 years ago

Michael-Phoenix commented 6 years ago

Instead of using $vector.front() which fails on empty vectors, we're now using the C++11 vector.data() to fetch the proper pointer