Fix a crash in 'Copy to spare:Palette' when both images have different height. Fix Lua which didin't report useful message when an error was detected.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1337 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -809,8 +809,9 @@ void Button_Brush_Factory(void)
|
||||
}
|
||||
else if (lua_pcall(L, 0, 0, 0) != 0)
|
||||
{
|
||||
message = lua_tostring(L, 1);
|
||||
if(message)
|
||||
int stack_size;
|
||||
stack_size= lua_gettop(L);
|
||||
if (stack_size>0 && (message = lua_tostring(L, stack_size))!=NULL)
|
||||
Verbose_error_message(message);
|
||||
else
|
||||
Warning_message("Unknown error running script!");
|
||||
|
||||
Reference in New Issue
Block a user