Graphics: Fix ::transition() "filename" default value

The default value is an empty string, which triggers the simple
transition. Passing null is not legal (and wasn't possible in
mkxp from Ruby side anyway).

Fixes #108.
This commit is contained in:
Jonas Kulla 2015-06-10 13:23:39 +02:00
parent 064b7ac80d
commit 6380a93cec
4 changed files with 4 additions and 4 deletions

View file

@ -45,7 +45,7 @@ MRB_FUNCTION(graphicsFreeze)
MRB_FUNCTION(graphicsTransition)
{
mrb_int duration = 8;
const char *filename = 0;
const char *filename = "";
mrb_int vague = 40;
mrb_get_args(mrb, "|izi", &duration, &filename, &vague);