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.

_______________________________________________
Mailing list: https://launchpad.net/~widelands-dev
Post to     : widelands-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~widelands-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to