YanFly Battle Engine NoMethodError

Hey Guys!
It's my first time ever posting something in a Forum 🙂
So heres my Question:

I started a new project and added :

BTW: I don't know if its helpful but i changed in Visual Battlers line 60 : PARTY_DIRECTION = 2
and this works fine. ( it makes my party face up)

But when i start my battle and my first actor attacks and comes back in position i got this error
Spoiler: Screenshot
e518c6f1-c978-4047-b3d7-1982043b090c.jpg

Script 'YFLY Battle Engine' line 3136: NoMethodError occured. undefined method 'actor?' for nil:NilClass

Spoiler: Whats written in line 3136
3135 def status_redraw_target(target)
3136 return unless target.actor?
3137 @status_window.draw_item($game_party.battle_members.index(target))
3138 end
How can i fix this?

At first i wanted to solve the problem by myself to improve my knowledge but i don't know what to do anymore.
I would appreciate if you could help me. 🙂
I don't use visual battler myself so idk how is their relation. But what happen if you change the line 3136 to this?
Code:
return unless target && target.actor?
there must be a copy paste error. I have all those scripts in a project and they work fine.
I don't use visual battler myself so idk how is their relation. But what happen if you change the line 3136 to this?
Code:
return unless target && target.actor?
still the same error and nothing changed at all
still the same error and nothing changed at all
Did u save the project before testing it?
Solution: Okay Guys , deleted all scripts and copied them new. Guess it was just some copy and paste error. Thanks for helping me out that fast 🙂

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-battle-engine-nomethoderror.100791/