[Freeciv-Dev] (PR#37920) Tutorial is crashing

2007-03-10 Thread Marko Lindqvist
URL: http://bugs.freeciv.org/Ticket/Display.html?id=37920 civserver: ../../../src.patched/server/scripting/script.c:212: script_callback_push_args: Assertion `0' failed. I've got this now three times after playing tutorial just a couple of turns. Entering hut has caused it twice. - ML

Re: [Freeciv-Dev] (PR#37920) Tutorial is crashing

2007-03-10 Thread Marko Lindqvist
URL: http://bugs.freeciv.org/Ticket/Display.html?id=37920 On 3/11/07, Marko Lindqvist [EMAIL PROTECTED] wrote: civserver: ../../../src.patched/server/scripting/script.c:212: script_callback_push_args: Assertion `0' failed. I've got this now three times after playing tutorial just a

Re: [Freeciv-Dev] (PR#37920) Tutorial is crashing

2007-03-10 Thread Marko Lindqvist
URL: http://bugs.freeciv.org/Ticket/Display.html?id=37920 Problem is that code cannot handle more than one callback to one signal. One callback is provided by tutorial scenario and one by default/script.lua. va_start() is called only once before any callbacks are called. *Each* callback

Re: [Freeciv-Dev] (PR#37920) Tutorial is crashing

2007-03-10 Thread Marko Lindqvist
URL: http://bugs.freeciv.org/Ticket/Display.html?id=37920 On 3/11/07, Marko Lindqvist [EMAIL PROTECTED] wrote: va_start() is called only once before any callbacks are called. *Each* callback tries to iterate through args with va_arg(). Fix. We lost (unused) function