Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bug in initialize of Map #6

Open
satan53x opened this issue Feb 3, 2024 · 0 comments
Open

A bug in initialize of Map #6

satan53x opened this issue Feb 3, 2024 · 0 comments

Comments

@satan53x
Copy link

satan53x commented Feb 3, 2024

rgss3.rb

class RPG::Map
  def initialize(width, height)
  ...
    @battleback_floor_name = ''
    @battleback_wall_name = ''
  ...
  attr_accessor :battleback1_name
  attr_accessor :battleback2_name

The initialized variable names should be the same as below.
Otherwise it will result in an inability to write back, the battleback1_name and battleback2_name will be nil.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant