Hey guys,
I got a "script-crash in showMenue:" - error, when running my game via test run button in SED.
I run it in debug mode in SED and then it works without an error-message.
Here's the script:
function showMenue(MENU* _menu)
{
int i;
for (i = 0; i < _menu->item_count; i += 1)
{
_menu->item[i]->panel = pan_create("flags = SHOW | LIGHT;", 101);
_menu->item[i]->panel.bmap = _menu->item[i]->icon;
_menu->item[i]->panel.pos_x = _menu->centerx;
_menu->item[i]->panel.pos_y = _menu->centery;
set(_menu->item[i]->panel, OVERLAY);
}
//Grow the menu from middle
int iRad = 0;
while(iRad < _menu->radius)
{
positionMenueItems(_menu, iRad);
iRad += 20;
wait(1);
}
positionMenueItems(_menu, _menu->radius);
showMenuDesc(_menu);
//Now accepts input
_menu->input = 1;
}
MENU is a struct.
Maybe there is some error which I am overlooking.
Thanks for help.
ThunderStorm