Skip to content
Snippets Groups Projects
Commit 2f26c235 authored by Nils Jonathan Friedrich Eckardt's avatar Nils Jonathan Friedrich Eckardt
Browse files

Fix SegFault untenLinks

parent f41d5d21
No related branches found
No related tags found
2 merge requests!38Merge the level editor,!29Merge main into box2d to implement physics
......@@ -311,7 +311,7 @@ void LevelScene::placeCliff(bool placedLand, int index){
surroundingIDs[2] = -1;
surroundingIDs[3] = -1;
}
if(index > m_width * (m_height - 1)){ //unterer Kartenrand
if(index >= m_width * (m_height - 1)){ //unterer Kartenrand
surroundingIDs[3] = -1;
surroundingIDs[4] = -1;
surroundingIDs[5] = -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment