Showing the changes to assignment-client/src/scripts/EntityScriptServer.cpp (1 of 30 files). Show all
Unified · Split
| @@ -178,7 +178,7 @@ void EntityScriptServer::updateEntityPPS() { · 177 unmodified lines | ||
| 178 | 178 | int numRunningScripts = _entitiesScriptEngine->getNumRunningEntityScripts(); |
| 179 | 179 | int pps; |
| 180 | 180 | if (std::numeric_limits<int>::max() / _entityPPSPerScript < numRunningScripts) { |
| 181 | − qWarning() << QString("Integer multiplaction would overflow, clamping to maxint: %1 * %2").arg(numRunningScripts).arg(_entityPPSPerScript); | |
| 181 | + qWarning() << QString("Integer multiplication would overflow, clamping to maxint: %1 * %2").arg(numRunningScripts).arg(_entityPPSPerScript); | |
| 182 | 182 | pps = std::numeric_limits<int>::max(); |
| 183 | 183 | pps = std::min(_maxEntityPPS, pps); |
| 184 | 184 | } else { |