diff options
| author | Juan Linietsky | 2015-06-29 00:29:49 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-06-29 00:29:49 -0300 |
| commit | 95047562d743b1c1fdc007432c8a0c145a455c5d (patch) | |
| tree | f563e5c900c4330fcc602b6e5a721bc63022b253 /core/image.cpp | |
| parent | 2b64f73b0459190d20b2f6de39275ee7979317c4 (diff) | |
| download | godot-95047562d743b1c1fdc007432c8a0c145a455c5d.tar.gz godot-95047562d743b1c1fdc007432c8a0c145a455c5d.tar.zst godot-95047562d743b1c1fdc007432c8a0c145a455c5d.zip | |
Diffstat (limited to 'core/image.cpp')
| -rw-r--r-- | core/image.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/image.cpp b/core/image.cpp index 037018519..c31fa4784 100644 --- a/core/image.cpp +++ b/core/image.cpp @@ -1016,10 +1016,10 @@ void Image::create( const char ** p_xpm ) { String line_str=line_ptr; line_str.replace("\t"," "); - size_width=line_str.get_slice(" ",0).to_int(); - size_height=line_str.get_slice(" ",1).to_int(); - colormap_size=line_str.get_slice(" ",2).to_int(); - pixelchars=line_str.get_slice(" ",3).to_int(); + size_width=line_str.get_slicec(' ',0).to_int(); + size_height=line_str.get_slicec(' ',1).to_int(); + colormap_size=line_str.get_slicec(' ',2).to_int(); + pixelchars=line_str.get_slicec(' ',3).to_int(); ERR_FAIL_COND(colormap_size > 32766); ERR_FAIL_COND(pixelchars > 5); ERR_FAIL_COND(size_width > 32767); |
