]> git.pond.sub.org Git - empserver/commit
(produce): When player->simulation, level production executed item
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 19 Mar 2005 16:50:22 +0000 (16:50 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 19 Mar 2005 16:50:22 +0000 (16:50 +0000)
commit17f8ffee1b8bbd86e7e07be7ca80aa6df20c910b
tree62d43c66c18e234664e66dd660217775067ef79a
parentab509c22ef96161405d7652449e8e27c56475872
(produce): When player->simulation, level production executed item
production code for item I_NONE.  This tries to put products into
vec[I_NONE].  Until item.h rev. 1.12, vec[I_NONE] was unused and zero,
so it worked.  Since then, it's a subscript out of bounds, clobbering
two bytes of stack.  The (unpredictable) stack contents could make the
code believe that there's not enough space for the `products', which
then reduced predicted production, typically to zero.
src/lib/update/produce.c