mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-18 16:09:18 +00:00
Fixed SHADER::AddParameter() function.
This commit is contained in:
parent
b143ce6b0f
commit
2a276550eb
@ -130,7 +130,7 @@ int SHADER::AddParameter( const std::string& aParameterName )
|
||||
if( location != -1 )
|
||||
parameterLocation.push_back( location );
|
||||
|
||||
return location;
|
||||
return parameterLocation.size() - 1;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user