Skip to content

Commit

Permalink
Fix a bug in interpolatedParams array allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
julienfryer authored and Synxis committed Jun 14, 2015
1 parent eb6a776 commit ba823b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/SPK_Model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ namespace SPK

if (nbInterpolatedParams > 0)
{
interpolatedParams = new int[nbMutableParams];
interpolatedParams = new int[nbInterpolatedParams];
for (size_t i = 0; i < nbInterpolatedParams; ++i)
interpolatedParams[i] = model.interpolatedParams[i];
}
Expand Down

0 comments on commit ba823b2

Please sign in to comment.