summaryrefslogtreecommitdiff
path: root/core/image.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2017-06-16 22:09:26 -0300
committerGitHub <noreply@github.com>2017-06-16 22:09:26 -0300
commitb1537da605e448899e9cbfbd8695306c96e7915c (patch)
treee914cf82da60ded581c9f324fbb762bc78dbca11 /core/image.cpp
parentb19225bfce3dab39f8ce6b1ecf610ea0ba650f99 (diff)
parent7787700aca695d9de6355d8133c62da285199e20 (diff)
Merge pull request #9231 from dumitru-stama/constimg
Fixed a bug in get_pixel not being const
Diffstat (limited to 'core/image.cpp')
-rw-r--r--core/image.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/image.cpp b/core/image.cpp
index 72d0d3e554..ad52447935 100644
--- a/core/image.cpp
+++ b/core/image.cpp
@@ -1712,7 +1712,7 @@ void Image::unlock() {
write_lock = PoolVector<uint8_t>::Write();
}
-Color Image::get_pixel(int p_x, int p_y) {
+Color Image::get_pixel(int p_x, int p_y) const {
uint8_t *ptr = write_lock.ptr();
#ifdef DEBUG_ENABLED