Closed GoogleCodeExporter closed 9 years ago
This is the result of printf accepting character arrays only, and you are
passing in an object of type std::string.
If you use Broodwar->printf("Type: %s", test.c_str()); then it should work.
For convenience you may use target->getType().c_str(); as a shortcut instead of
target->getType().getName().c_str();
In BWAPI 4 (r4350+) this syntax is
Broodwar << "Type: " << target->getType() << std::endl;
Original comment by AHeinerm
on 11 Nov 2013 at 12:50
Original issue reported on code.google.com by
mdsumne...@gmail.com
on 10 Nov 2013 at 11:29