diff options
-rw-r--r-- | engines/wintermute/base/scriptables/script_ext_date.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/wintermute/base/scriptables/script_ext_date.cpp b/engines/wintermute/base/scriptables/script_ext_date.cpp index b5acc7d389..7726015081 100644 --- a/engines/wintermute/base/scriptables/script_ext_date.cpp +++ b/engines/wintermute/base/scriptables/script_ext_date.cpp @@ -127,8 +127,7 @@ bool SXDate::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack, //////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "GetWeekday") == 0) {
stack->correctParams(0);
- warning("GetWeekday returns a wrong value on purpose");
- stack->pushInt(_tm.tm_mday % 7);
+ stack->pushInt(_tm.tm_wday);
return STATUS_OK;
}
|