Merge pull request #8622 from mcanders/mcanders/issue8314_get_shader_type_index

Fix get_shader_type index upper bound
This commit is contained in:
Rémi Verschelde 2017-05-02 11:22:04 +02:00 committed by GitHub
commit ab9d7241d9

View file

@ -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;