Fixed PLAY command issue in r904.

This commit is contained in:
spx 2011-08-18 02:27:52 +00:00
parent 91654989ff
commit 12be2ffad1

View File

@ -3269,7 +3269,7 @@ void CRainmeter::ExecuteCommand(const WCHAR* command, CMeterWindow* meterWindow)
if (!strCommand.empty()) if (!strCommand.empty())
{ {
const WCHAR* command = strCommand.c_str(); command = strCommand.c_str();
if (command[0] == L'!' && Rainmeter->GetDummyLitestep()) // Bangs if (command[0] == L'!' && Rainmeter->GetDummyLitestep()) // Bangs
{ {
@ -3316,7 +3316,7 @@ void CRainmeter::ExecuteCommand(const WCHAR* command, CMeterWindow* meterWindow)
command += 4; // Skip LOOP command += 4; // Skip LOOP
} }
if (command[1] == L' ') if (command[0] == L' ')
{ {
command += 1; // Skip the space command += 1; // Skip the space
strCommand = command; strCommand = command;