mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-22 01:39:57 +00:00
TSAGE: Fix compilation on NDS.
It is not safe to assume one can construct a va_list by using NULL. Instead I created a temporary (uninitialized!) dummy, which is passed in the call to the Action::attached implementation. I added a TODO to resolve this temporary hack.
This commit is contained in:
parent
fc59a52e7a
commit
5c87136b5f
@ -320,7 +320,12 @@ void SequenceManager::attached(EventHandler *newOwner, EventHandler *fmt, va_lis
|
||||
}
|
||||
|
||||
setup();
|
||||
Action::attached(newOwner, fmt, NULL);
|
||||
// TODO: This is not particulary nice, since dummy is uninitialized.
|
||||
// Since the default Action implementation does not access the va_list
|
||||
// parameter it should be fine though. Still it would be nice to find
|
||||
// a better solution to this.
|
||||
va_list dummy;
|
||||
Action::attached(newOwner, fmt, dummy);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user