Update engine_stocks.inc

When compiling was varningov , and the function itself was crooked written