diff options
author | Strangerke | 2014-02-28 22:20:38 +0100 |
---|---|---|
committer | Strangerke | 2014-02-28 22:20:38 +0100 |
commit | d35f470bf6290eb9ab5a86321b223ae3f1cb48fa (patch) | |
tree | d0dd9f7e628c92f5d25d8bb914b1a2a9209a2967 /engines/tony/mpal/mpal.cpp | |
parent | a140837f79362d50ef772b301a2a9413c31f9d6b (diff) | |
download | scummvm-rg350-d35f470bf6290eb9ab5a86321b223ae3f1cb48fa.tar.gz scummvm-rg350-d35f470bf6290eb9ab5a86321b223ae3f1cb48fa.tar.bz2 scummvm-rg350-d35f470bf6290eb9ab5a86321b223ae3f1cb48fa.zip |
TONY: Reduce the scope of some variables, change the return type of findPath()
Diffstat (limited to 'engines/tony/mpal/mpal.cpp')
-rw-r--r-- | engines/tony/mpal/mpal.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/tony/mpal/mpal.cpp b/engines/tony/mpal/mpal.cpp index 797c7dbae0..3084fd89af 100644 --- a/engines/tony/mpal/mpal.cpp +++ b/engines/tony/mpal/mpal.cpp @@ -1524,7 +1524,6 @@ void mpalFree() { uint32 mpalQueryDWORD(uint16 wQueryType, ...) { Common::String buf; uint32 dwRet = 0; - char *n; va_list v; va_start(v, wQueryType); @@ -1625,7 +1624,7 @@ uint32 mpalQueryDWORD(uint16 wQueryType, ...) { */ lockVar(); int x = GETARG(uint32); - n = GETARG(char *); + char *n = GETARG(char *); buf = Common::String::format("Status.%u", x); if (varGetValue(buf.c_str()) <= 0) n[0]='\0'; |