Moppa5 / pirkanmaan-valloitus

Qt and C++ based game project
MIT License
2 stars 0 forks source link

Game crashes with std::out_of_range #17

Open Moppa5 opened 3 years ago

Moppa5 commented 3 years ago

Description The game crashes sometimes when applying players or game started. I'm not sure how this happens, but it seems that this bumps from time to time. I'm documenting it here as we should investigate why it crashes sometimes.

The terminated gives this: terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check: __n (which is 2) >= this->size() (which is 2)

Moppa5 commented 3 years ago

@HyperionCoding, what do you think? As far as I'm concerned I think this issue lies on WorldGenerator and probably on PerlinNoise since this happens so randomly. What's the status with the division by zero case on project kanban? Could this be related to it?