diff --git a/library/DFHackAPI.cpp b/library/DFHackAPI.cpp index b18d5d8a7..6904739c2 100644 --- a/library/DFHackAPI.cpp +++ b/library/DFHackAPI.cpp @@ -983,6 +983,7 @@ int32_t API::ReadCreatureInBox(int32_t index, t_creature & furball, } index++; } + return -1; } bool API::ReadCreature(const int32_t &index, t_creature & furball) diff --git a/tools/attachtest.cpp b/tools/attachtest.cpp index e168b9c51..687d8593e 100644 --- a/tools/attachtest.cpp +++ b/tools/attachtest.cpp @@ -65,10 +65,11 @@ int main (void) cout << "Testing suspend/resume" << endl; DF.Attach(); time(&start); - for (int i = 0; i < 100; i++) + for (int i = 0; i < 1000000; i++) { DF.Suspend(); - cout << "Try " << i << endl; + if(i%10000 == 0) + cout << i / 10000 << "%" << endl; DF.Resume(); } time(&end);