aboutsummaryrefslogtreecommitdiff
path: root/AmpelJonas/cObjectHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AmpelJonas/cObjectHandler.cpp')
-rw-r--r--AmpelJonas/cObjectHandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/AmpelJonas/cObjectHandler.cpp b/AmpelJonas/cObjectHandler.cpp
index a5c5884..d35653a 100644
--- a/AmpelJonas/cObjectHandler.cpp
+++ b/AmpelJonas/cObjectHandler.cpp
@@ -13,7 +13,7 @@ int cObjectHandler::createObject(cObject *_object)
int cObjectHandler::moveObject(int _object, sPos _pos, int _mode)
{
- if (_object >= objects.size()) //prevent segmentation faults
+ if (_object >= objects.size()) //prevent segmentation faults
return 1;
if (!objects[_object])
@@ -41,7 +41,7 @@ int cObjectHandler::write()
{
render->clear();
- for (int i = 0; i < objects.size(); i++)
+ for (unsigned long int i = 0; i < objects.size(); i++)
{
if (objects[i]) // Check if objects[i] is existent
{
@@ -60,4 +60,4 @@ int cObjectHandler::write()
}
return 0;
-} \ No newline at end of file
+}