Update engine_stocks.inc

When compiling was varningov , and the function itself was crooked written
Merge pull request #139 from 9iky6/patch-10

Update engine_stocks.inc