← Back to team overview

widelands-dev team mailing list archive

Re: [Merge] lp:~widelands-dev/widelands/bug-1388028 into lp:widelands

 

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...




-- 
https://code.launchpad.net/~widelands-dev/widelands/bug-1388028/+merge/240357
Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/bug-1388028.


References