From 5c87136b5f045d5ddcaf534185fb2259264cbabd Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 13 Apr 2011 19:11:22 +0200 Subject: 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. --- engines/tsage/converse.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/tsage/converse.cpp b/engines/tsage/converse.cpp index 260308a784..82ee298e0b 100644 --- a/engines/tsage/converse.cpp +++ b/engines/tsage/converse.cpp @@ -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); } /** -- cgit v1.2.3