| Line 190: |
Line 190: |
| | | | |
| | console.log("Within partition: " + ect ); | | console.log("Within partition: " + ect ); |
| − | future_temp_obj.push( checkdive( temp_obj[ ect ], moving ) ); | + | if ( checkdive( temp_obj[ ect ], moving ) !== undefined ) { |
| | + | future_temp_obj.push( checkdive( temp_obj[ ect ], moving ) ); |
| | + | } |
| | | | |
| | }); | | }); |
| Line 200: |
Line 202: |
| | | | |
| | console.log("data is on an objective level"); | | console.log("data is on an objective level"); |
| − | future_temp_obj = checkdive( temp_obj, moving ); | + | |
| | + | if ( checkdive( temp_obj, moving ) !== temp_obj ) { |
| | + | future_temp_obj = checkdive( temp_obj, moving ); |
| | + | } |
| | if ( future_temp_obj !== undefined ){ | | if ( future_temp_obj !== undefined ){ |
| | temp_obj = future_temp_obj; | | temp_obj = future_temp_obj; |
| Line 214: |
Line 219: |
| | //|||||||||||||||||||||||||||||||||||||||||||||||||||||[ E N D O F S T E P B L O C K ]||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| | | //|||||||||||||||||||||||||||||||||||||||||||||||||||||[ E N D O F S T E P B L O C K ]||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |
| | | | |
| − | function checkdive( array, read){ | + | function checkdive( array, read ){ |
| | if ( check(array, read) !== undefined) { | | if ( check(array, read) !== undefined) { |
| | return dive(array, read); | | return dive(array, read); |