Fixed mistake in efd051c

This commit is contained in:
Birunthan Mohanathas 2012-05-07 13:59:18 +03:00
parent efd051c4af
commit 2fcc13d52b

View File

@ -2068,9 +2068,9 @@ void CRainmeter::ExecuteCommand(const WCHAR* command, CMeterWindow* meterWindow)
if (command[0] == L'[') // Multi-bang
{
std::wstring bangs = &command[1];
std::wstring bangs = command;
std::wstring::size_type start = 0;
int count = 1;
int count = 0;
for (size_t i = 0, isize = bangs.size(); i < isize; ++i)
{
if (bangs[i] == L'[')