Fix 'thePatch may be uninitialized' warning
Mainly by reducing its scope. Also, it appeared in the signature of the CreateLine method without being needed there.
Mainly by reducing its scope. Also, it appeared in the signature of the CreateLine method without being needed there.