from http://www.cplusplus.com/reference/vector/vector/back/
Calling this function on an empty container causes undefined behavior.
But what is more interesting is that if really the genstats or miltary_strength can be empty during a small period of time after loading.
Also, it can be empty during first 60 seconds of new game...
I somehow dont like that 'try' just because it can hide other problems
I will think about it and rework it...
« Back to merge proposal
from http:// www.cplusplus. com/reference/ vector/ vector/ back/
Calling this function on an empty container causes undefined behavior.
But what is more interesting is that if really the genstats or miltary_strength can be empty during a small period of time after loading.
Also, it can be empty during first 60 seconds of new game...
I somehow dont like that 'try' just because it can hide other problems
I will think about it and rework it...