diff options
author | Carter Anderson <mcanders1@gmail.com> | 2017-05-01 23:36:24 -0700 |
---|---|---|
committer | Carter Anderson <mcanders1@gmail.com> | 2017-05-01 23:41:44 -0700 |
commit | 212c6306a8c1e1306a6966ec7959916849f8a283 (patch) | |
tree | fdae89e1ee489f9427dbc6b306f850a1093a1069 /servers | |
parent | 64c31a3a9ff01b8f317c2d46e58118e1af9102d8 (diff) |
Fix get_shader_type index upper bound
Diffstat (limited to 'servers')
-rw-r--r-- | servers/visual/shader_language.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp index dd653ea891..9fe92f0fec 100644 --- a/servers/visual/shader_language.cpp +++ b/servers/visual/shader_language.cpp @@ -3751,7 +3751,7 @@ String ShaderLanguage::get_shader_type(const String &p_code) { String cur_identifier; - for (int i = 0; i < p_code.length() + 1; i++) { + for (int i = 0; i < p_code.length(); i++) { if (p_code[i] == ';') { break; |