It doesnt work after refacturing

Hello i refactured my code like the video and after that i tested it and it doesnt work the destination marker stucks under the floor can anybody help me out?

Have forgotten the pointer on the location now its working

1 Like

This is a common issue with refactoring (making mistakes) but it’s also important that you refactor.

Nobody creates good code the first time you write something. They write some code, get it working the way they want and save/back up the work. A tool like git is good for this. Then refactor - you will break it but then you fix it again. Once you’re happy, move on.

This is an iterative process.