Skip to content

Fix monster index bounds and health update#1

Open
zpoorv wants to merge 1 commit intomainfrom
codex/find-and-fix-bug-in-codebase
Open

Fix monster index bounds and health update#1
zpoorv wants to merge 1 commit intomainfrom
codex/find-and-fix-bug-in-codebase

Conversation

@zpoorv
Copy link
Copy Markdown
Owner

@zpoorv zpoorv commented Jun 6, 2025

Summary

  • initialize starting level from 0
  • iterate monsters using indices 0-49
  • prevent out-of-bounds in healthSystem
  • change monsterHealthchanger to return void

Testing

  • g++ -std=c++17 -I./ -o main_new.out main.cpp -lraylib (fails: raylib not installed)

https://chatgpt.com/codex/tasks/task_e_6842634d32148330bd937eb8acf75108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant