{"action":"created","issue":{"url":"https://api.github.com/repos/jasonhall/bwapi/issues/168","labels_url":"https://api.github.com/repos/jasonhall/bwapi/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/jasonhall/bwapi/issues/168/comments","events_url":"https://api.github.com/repos/jasonhall/bwapi/issues/168/events","html_url":"https://github.com/jasonhall/bwapi/issues/168","id":59426995,"number":168,"title":"Icorrect Unit.isGatheringGas() behaviour","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jasonhall/bwapi/labels/auto-migrated","name":"auto-migrated","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-02T00:52:52Z","updated_at":"2015-03-02T00:52:53Z","closed_at":"2015-03-02T00:52:52Z","body":"```\nWhat steps will reproduce the problem?\n1. In onFrame() callback insert the code like this:\n\tstatic Unit* gasing = NULL;\n\tif (gasing == NULL)\n\t{\n\t\tset<Unit*> myUnits = Broodwar->self()->getUnits();\n\t\tfor (setUnit_ci i = myUnits.begin(); i != myUnits.end(); i+\n+)\n\t\t\tif ((*i)->getType().isWorker() && (*i)-\n>isGatheringGas())\n\t\t\t\t// set gasing unit\n\t\t\t{\n\t\t\t\tgasing = *i;\n\t\t\t\tbreak;\n\t\t\t}\n\t} else\n\t{\n\t\tif (!gasing->isGatheringGas())\n\t\t\tBroodwar->printf(\"Gasing is not gasing!\");\n\t}\n\n2. Start the game as Zerg, build Spawning pool and Extractor, gather \nresources for upgrade to Zerg Lair\n3. Start gathering gas\n4. Morph Hatchery to Lair\n\nWhat is the expected output? What do you see instead?\nExpected to simply gather gas, no output.\nInstead each time drone puts the gas its carrying into morphing hatchery, \n\"Gasing is not gasing\" appears.\n\nWhat version of the product are you using? On what operating system?\nPublicly available BWAPI 2.4 beta\n\nPlease provide any additional information below.\n\n```\n\nOriginal issue reported on code.google.com by `tai...@nm.ru` on 16 Dec 2009 at 12:06"},"comment":{"url":"https://api.github.com/repos/jasonhall/bwapi/issues/comments/76643052","html_url":"https://github.com/jasonhall/bwapi/issues/168#issuecomment-76643052","issue_url":"https://api.github.com/repos/jasonhall/bwapi/issues/168","id":76643052,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T00:52:53Z","updated_at":"2015-03-02T00:52:53Z","body":"\n\nOriginal comment by `lowerlo...@gmail.com` on 20 Dec 2009 at 8:34\n* Changed state: **Accepted**"}}