Skip to content

Commit f1594b7

Browse files
committed
Fixed parameter ordering for clamp.
1 parent e9da18f commit f1594b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

LibIPS.NET/Patcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void PatchStudy(Stream patch, Studier.IpsStudy study, Stream source, Stre
2323
{
2424
source.CopyTo(target);
2525
if (study.Error == Studier.IpsError.IpsInvalid) throw new Exceptions.IpsInvalidException();
26-
int outlen = (int)Clamp(study.OutlenMin, target.Length, study.OutlenMax);
26+
int outlen = (int)Clamp(target.Length, study.OutlenMin, study.OutlenMax);
2727
// Set target file length to new size.
2828
target.SetLength(outlen);
2929

0 commit comments

Comments
 (0)