Skip to content

Fix store to null pointer error in Image.fill()#11

Merged
madmiraal merged 1 commit into
RebelToolbox:mainfrom
madmiraal:fix-store-to-null-pointer
Jun 30, 2023
Merged

Fix store to null pointer error in Image.fill()#11
madmiraal merged 1 commit into
RebelToolbox:mainfrom
madmiraal:fix-store-to-null-pointer

Conversation

@madmiraal
Copy link
Copy Markdown
Contributor

Currently, Image::fill() attempts to set the first pixel (0, 0) even when there is no data:

set_pixel(0, 0, c);

This PR triggers a ERR_FAIL_COND error if an attempt is made to fill an image that has no data.

@madmiraal madmiraal added the bug label Jun 30, 2023
@madmiraal madmiraal self-assigned this Jun 30, 2023
@madmiraal madmiraal merged commit 598a9a3 into RebelToolbox:main Jun 30, 2023
@madmiraal madmiraal deleted the fix-store-to-null-pointer branch June 30, 2023 21:43
@madmiraal madmiraal added PR Type: Bug Fix Your current game should now work as expected. and removed bug labels May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR Type: Bug Fix Your current game should now work as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant