Whenever I playtest my game, it has an error that says "Wrong number of arguments" in line 24 of the Game_Actors script. The script says,
What should I do?
19. def [](actor_id)
20. if actor_id > 999 or $data_actors[actor_id] == nil
21. return nil
22. end
23. if @data[actor_id] == nil
24. @data[actor_id] = Game_Actor.new(actor_id)
25. end
26. return @data[actor_id]
27. end
What should I do?