Fixes stamina function restoreStamina.

As said in the title.